diff --git a/card/extra.js b/card/extra.js index 175aa4119..baedc81de 100644 --- a/card/extra.js +++ b/card/extra.js @@ -922,7 +922,7 @@ game.import("card", function () { }, ai: { effect: { - target: function (card, player, target, current) { + target_use(card, player, target, current) { if (target.hasSkillTag("unequip2")) return; if ( player.hasSkillTag("unequip", false, { diff --git a/card/guozhan.js b/card/guozhan.js index eb62acee6..44f7cdc47 100644 --- a/card/guozhan.js +++ b/card/guozhan.js @@ -1523,7 +1523,7 @@ game.import("card", function () { }, ai: { effect: { - target: function (card, player, target, current) { + target_use(card, player, target, current) { if ( ["huoshaolianying", "huogong"].includes(card.name) || (card.name == "sha" && game.hasNature(card, "fire")) @@ -1575,7 +1575,7 @@ game.import("card", function () { g_dinglanyemingzhu_ai: { ai: { effect: { - player: function (card, player) { + player_use(card, player) { if (player.hasSkill("jubao")) return; if ( card.name == "dinglanyemingzhu" && @@ -1592,7 +1592,7 @@ game.import("card", function () { g_feilongduofeng_ai: { ai: { effect: { - player: function (card, player) { + player_use(card, player) { if (player.hasSkill("zhangwu")) return; if ( card.name == "feilongduofeng" && @@ -1609,7 +1609,7 @@ game.import("card", function () { g_taipingyaoshu_ai: { ai: { effect: { - player: function (card, player) { + player_use(card, player) { if (player.hasSkill("wendao")) return; if ( card.name == "taipingyaoshu" && @@ -1620,7 +1620,7 @@ game.import("card", function () { return [0, 0, 0, 0]; } }, - target: (card, player, target) => { + target_use(card, player, target) { if (target._g_taipingyaoshu_temp) return; if ( get.subtype(card) === "equip2" && diff --git a/card/gwent.js b/card/gwent.js index 92d7ac812..7063b7095 100644 --- a/card/gwent.js +++ b/card/gwent.js @@ -2001,7 +2001,7 @@ game.import("card", function () { ai: { weather: true, effect: { - player: function (card, player) { + player_use(card, player) { if (!player.needsToDiscard()) return "zeroplayertarget"; }, }, diff --git a/card/standard.js b/card/standard.js index cb42ca830..aac24ac0e 100644 --- a/card/standard.js +++ b/card/standard.js @@ -3117,7 +3117,7 @@ game.import("card", function () { }, ai: { effect: { - target: function (card, player, target) { + target_use(card, player, target) { if (typeof card !== "object" || target.hasSkillTag("unequip2")) return; if ( player.hasSkillTag("unequip", false, { diff --git a/card/yingbian.js b/card/yingbian.js index c2edf19fe..d6b5e3bb5 100644 --- a/card/yingbian.js +++ b/card/yingbian.js @@ -754,7 +754,7 @@ game.import("card", function () { heiguangkai_ai: { ai: { effect: { - player: function (card, player, target) { + player_use(card, player, target) { if ( typeof card !== "object" || !target ||