character all finished

This commit is contained in:
157 2024-05-11 17:02:14 +08:00
parent 3b39fa28ed
commit e98648ddd7
9 changed files with 33 additions and 33 deletions

View File

@ -1289,7 +1289,7 @@ game.import("character", function () {
},
ai: {
effect: {
target(card, player, target, current) {
target_use(card, player, target, current) {
if (get.color(card) == "red" && target.isDamaged()) return [1, 1];
},
},
@ -1480,7 +1480,7 @@ game.import("character", function () {
ai: {
halfneg: true,
effect: {
player(card, player, target, current) {
player_use(card, player, target, current) {
if (get.color(card) == "red") return [1, 0, 1, -2];
},
},

View File

@ -2517,7 +2517,7 @@ game.import("character", function () {
},
ai: {
effect: {
target(card, player, target) {
target_use(card, player, target) {
if (get.type(card, "trick") == "trick" && player == target) return [1, 1];
},
},

View File

@ -180,7 +180,7 @@ game.import("character", function () {
},
ai: {
effect: {
target: function (card, player, target) {
target_use(card, player, target) {
if (_status.woliu2_temp) return;
if (card.name == "sha" && target.storage.woliu2) {
_status.woliu2_temp = true;
@ -266,7 +266,7 @@ game.import("character", function () {
},
ai: {
effect: {
target: function (card, player, target, current) {
target_use(card, player, target, current) {
if (card.name == "sha") {
if (_status.event.name == "qianggu2") return;
if (get.attitude(player, target) > 0) return;

View File

@ -1259,7 +1259,7 @@ game.import("character", function () {
},
ai: {
effect: {
target: function (card, player, target, current) {
target_use(card, player, target, current) {
if (
target == player &&
lib.skill.gaizao.filterx(card, target) &&
@ -1869,7 +1869,7 @@ game.import("character", function () {
},
ai: {
effect: {
target: function (card, player, target) {
target_use(card, player, target) {
if (get.tag(card, "respondShan")) {
var shans = target.countCards("h", "shan");
var hs = target.countCards("h");
@ -1920,7 +1920,7 @@ game.import("character", function () {
mingzhi: false,
useShan: true,
effect: {
target: function (card, player, target) {
target_use(card, player, target) {
if (get.tag(card, "respondShan")) {
var shans = target.countCards("h", "shan");
var hs = target.countCards("h");
@ -2970,7 +2970,7 @@ game.import("character", function () {
},
ai: {
effect: {
target: function (card) {
target_use(card) {
if (card.name == "sha") return 1.3;
},
},
@ -3307,7 +3307,7 @@ game.import("character", function () {
ai: {
mingzhi: false,
effect: {
target: function (card, player, target) {
target_use(card, player, target) {
if (player == _status.currentPhase) return;
if (
!game.hasPlayer(function (current) {
@ -4484,7 +4484,7 @@ game.import("character", function () {
},
ai: {
effect: {
player: function (card, player, target) {
player_use(card, player, target) {
if (player != target) return;
if (get.type(card) == "equip" && !player.needsToDiscard()) {
return [0, 0, 0, 0];
@ -8406,7 +8406,7 @@ game.import("character", function () {
},
ai: {
effect: {
target: function (card, player, target) {
target_use(card, player, target) {
if (
get.color(card) == "black" &&
get.attitude(target, player) < 0 &&
@ -8676,7 +8676,7 @@ game.import("character", function () {
},
ai: {
effect: {
target: function (card, player, target) {
target_use(card, player, target) {
return 0.7;
},
},

View File

@ -287,7 +287,7 @@ game.import("character", function () {
},
ai: {
effect: {
player: function (card, player) {
player_use(card, player) {
if (_status.currentPhase != player) return;
if (get.type(card) == "basic") return;
if (get.tag(card, "gain")) return;
@ -1029,7 +1029,7 @@ game.import("character", function () {
reverseEquip: true,
threaten: 1.5,
effect: {
target: function (card, player, target, current) {
target_use(card, player, target, current) {
if (get.type(card) == "equip") return [1, 3];
},
},
@ -4157,7 +4157,7 @@ game.import("character", function () {
},
ai: {
effect: {
target: function (card, player, target) {
target_use(card, player, target) {
if (
target.storage.xjzhimeng2 &&
get.type(card, "trick") == get.type(target.storage.xjzhimeng2, "trick")
@ -4268,7 +4268,7 @@ game.import("character", function () {
},
ai: {
effect: {
target: function (card, player, target, current) {
target_use(card, player, target, current) {
if (target == player.next || target == player.previous) return 0.1;
},
},

View File

@ -1609,7 +1609,7 @@ const skills = {
},
ai: {
effect: {
target: function (card, player, target, current) {
target_use(card, player, target, current) {
if (target.isHealthy() || (card.name != "sha" && card.name != "juedou")) return;
if (target.storage.counttrigger && target.storage.counttrigger.yizu && current < 0) return 5;
if (player.hp < target.hp) return;
@ -2495,7 +2495,7 @@ const skills = {
ai: {
threaten: 0.6,
effect: {
target: function (card, player, target, current) {
target_use(card, player, target, current) {
if (typeof card != "object" || target.hasSkill("xindanshou_as") || !["basic", "trick"].includes(get.type(card, "trick"))) return;
var num = 0;
game.countPlayer2(function (current) {
@ -4153,7 +4153,7 @@ const skills = {
return bool;
},
effect: {
target: function (card, player, target, current) {
target_use(card, player, target, current) {
if (card.name == "sha" && current < 0) return 0.7;
},
},
@ -4857,7 +4857,7 @@ const skills = {
},
ai: {
effect: {
target: function (card, player, target, current) {
target_use(card, player, target, current) {
if (card.name == "sha" && get.attitude(player, target) < 0) {
return 0.3;
}
@ -7307,7 +7307,7 @@ const skills = {
if (arg.target != player.storage.xinxianzhen) return false;
},
effect: {
player: function (card, player, target, current, isLink) {
player_use(card, player, target, current, isLink) {
if (isLink || !player.storage.xinxianzhen) return;
if (target != player.storage.xinxianzhen && ["sha", "guohe", "shunshou", "huogong", "juedou"].includes(card.name)) {
if (get.effect(player.storage.xinxianzhen, card, player, player) > 0) {
@ -8350,7 +8350,7 @@ const skills = {
ai: {
respondShan: true,
effect: {
target: function (card, player, target, current) {
target_use(card, player, target, current) {
if (get.tag(card, "respondShan") && current < 0) {
var nh = player.countCards("h");
var players = game.filterPlayer();
@ -9547,7 +9547,7 @@ const skills = {
},
ai: {
effect: {
player_use: function (card, player, target) {
player_use(card, player, target) {
var list = player.storage.taoxi_list;
if (!list || !list[1]) return;
if (list[1].includes(card)) return [1, 1];
@ -12069,7 +12069,7 @@ const skills = {
ai: {
expose: 0.2,
effect: {
target: function (card, player, target) {
target_use(card, player, target) {
if (card.name != "sha") return;
var players = game.filterPlayer();
if (get.attitude(player, target) <= 0) {
@ -12787,7 +12787,7 @@ const skills = {
return arg && arg.jiu == true;
},
effect: {
target: (card, player, target) => {
target_use(card, player, target) {
if (target.hp <= 0 && target.hasSkill("zhenlie_lose") && get.tag(card, "recover")) return [1, 1.2];
},
},
@ -12812,10 +12812,10 @@ const skills = {
},
ai: {
effect: {
target: function (card, player, target, current) {
target_use(card, player, target, current) {
if (get.type(card) == "trick" && player != target) return "zeroplayertarget";
},
player: function (card, player, target, current) {
player_use(card, player, target, current) {
if (get.type(card) == "trick" && player != target) return "zeroplayertarget";
},
},
@ -12989,7 +12989,7 @@ const skills = {
},
ai: {
effect: {
target: function (card, player, target) {
target_use(card, player, target) {
if (player == target && get.subtypes(card).includes("equip2")) {
if (get.equipValue(card) <= 8) return 0;
}

View File

@ -597,7 +597,7 @@ const skills = {
onremove: true,
ai: {
effect: {
player: function (card, player, target) {
player_use(card, player, target) {
if (card.name == player.storage.xiongshu_ai) return "zeroplayertarget";
},
},

View File

@ -1460,7 +1460,7 @@ game.import("character", function () {
},
ai: {
effect: {
target: function (card, player, target, current) {
target_use(card, player, target, current) {
if (get.type(card) == "trick" || card.name == "sha") return "zeroplayertarget";
},
},
@ -1781,7 +1781,7 @@ game.import("character", function () {
ai: {
mingzhi: false,
effect: {
target: function (card, player, target) {
player_use(card, player, target) {
if (get.tag(card, "respondShan")) {
return 0.8;
}

View File

@ -123,7 +123,7 @@ game.import("character", function () {
},
ai: {
effect: {
target: function (card, player, target, current) {
target_use(card, player, target, current) {
if (target.getEquip(2)) return;
return lib.skill.tengjia1.ai.effect.target.apply(this, arguments);
},