diff --git a/character/gujian.js b/character/gujian.js index 32cb44d1d..afccb9967 100644 --- a/character/gujian.js +++ b/character/gujian.js @@ -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]; }, }, diff --git a/character/hearth.js b/character/hearth.js index 027c7363a..e1f42657a 100644 --- a/character/hearth.js +++ b/character/hearth.js @@ -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]; }, }, diff --git a/character/ow.js b/character/ow.js index c84ae460e..f05bbe302 100644 --- a/character/ow.js +++ b/character/ow.js @@ -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; diff --git a/character/swd.js b/character/swd.js index 96e1bdfb2..6b7dd8a82 100644 --- a/character/swd.js +++ b/character/swd.js @@ -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; }, }, diff --git a/character/xianjian.js b/character/xianjian.js index f039adbb7..864d78529 100644 --- a/character/xianjian.js +++ b/character/xianjian.js @@ -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; }, }, diff --git a/character/yijiang/skill.js b/character/yijiang/skill.js index 01ea930e7..a39bc85c8 100644 --- a/character/yijiang/skill.js +++ b/character/yijiang/skill.js @@ -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; } diff --git a/character/yingbian/skill.js b/character/yingbian/skill.js index d0a7063fe..801c0ba63 100644 --- a/character/yingbian/skill.js +++ b/character/yingbian/skill.js @@ -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"; }, }, diff --git a/character/yxs.js b/character/yxs.js index 65860cbd9..baaefce6e 100644 --- a/character/yxs.js +++ b/character/yxs.js @@ -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; } diff --git a/character/zhuogui.js b/character/zhuogui.js index cd1efcf37..fc6fe816e 100644 --- a/character/zhuogui.js +++ b/character/zhuogui.js @@ -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); },