From 7971e524b4cc02e67446001d86a9dadbe34aab4a Mon Sep 17 00:00:00 2001 From: 157 <3619242020@qq.com> Date: Sat, 11 May 2024 15:47:03 +0800 Subject: [PATCH] c-e effect->effect_use --- character/clan/skill.js | 4 ++-- character/collab/skill.js | 4 ++-- character/ddd/skill.js | 2 +- character/diy/skill.js | 6 +++--- character/extra/skill.js | 10 +++++----- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/character/clan/skill.js b/character/clan/skill.js index 37903f9e3..227297489 100644 --- a/character/clan/skill.js +++ b/character/clan/skill.js @@ -932,7 +932,7 @@ const skills = { ai: { threaten: 3, effect: { - player(card, player, target) { + player_use(card, player, target) { if (!target || typeof card !== "object" || player._clanjiejian_mod_temp || get.type(card) === "equip" || get.attitude(player, target) <= 0 || get.cardNameLength(card) !== player.getHistory("useCard").length + 1) return; let targets = [target], evt = _status.event.getParent("useCard"); @@ -2705,7 +2705,7 @@ const skills = { if (player.getHistory("useCard", evt => get.type(evt.card) == "equip").length > 0) return false; }, effect: { - target(card, player, target) { + target_use(card, player, target) { if (player == target && get.type(card) == "equip" && !player.getHistory("useCard", evt => get.type(evt.card) == "equip").length == 0) return [1, 3]; }, }, diff --git a/character/collab/skill.js b/character/collab/skill.js index 688e953f0..2a8cf5050 100644 --- a/character/collab/skill.js +++ b/character/collab/skill.js @@ -759,7 +759,7 @@ const skills = { }, }, effect: { - target(card, player, target, current) { + target_use(card, player, target, current) { if (player == target && player.isPhaseUsing() && get.type(card) == "equip") { if (player.hasValueTarget("sha", false) && typeof player.getStat("skill").dcbianzhuang == "number") return [1, 3]; } @@ -1645,7 +1645,7 @@ const skills = { }, ai: { effect: { - player(card, player, target) { + player_use(card, player, target) { if (player !== target && get.type2(card) === "trick") { let tars = [target]; if (ui.selected.targets.length) tars.addArray(ui.selected.targets.filter(i => i !== player && i !== target)); diff --git a/character/ddd/skill.js b/character/ddd/skill.js index 7f0afff6a..edbf3ba0a 100644 --- a/character/ddd/skill.js +++ b/character/ddd/skill.js @@ -2619,7 +2619,7 @@ const skills = { order: 10, result: { player: 1 }, effect: { - target: (card, player, target) => { + target_use(card, player, target) { if (card.name === "sha" && target.getExpansions("ddddongcha_effect").length < 2 && lib.skill["dddzhijie"].hiddenCard(target, "shan")) return [1, 1, 1, -get.sgn(get.attitude(player, _status.currentPhase))]; }, }, diff --git a/character/diy/skill.js b/character/diy/skill.js index 93a7d420c..2db429859 100644 --- a/character/diy/skill.js +++ b/character/diy/skill.js @@ -3176,7 +3176,7 @@ const skills = { }, ai: { effect: { - target(card, player, target, current) { + target_use(card, player, target, current) { if (get.type(card, "trick") == "trick" && get.distance(player, target) > 1) return "zeroplayertarget"; }, }, @@ -4609,7 +4609,7 @@ const skills = { }, ai: { effect: { - target(card, player, target, current) { + target_use(card, player, target, current) { if (get.type(card, "trick") == "trick" && _status.currentPhase == player) return "zeroplayertarget"; }, }, @@ -6238,7 +6238,7 @@ const skills = { }, ai: { effect: { - target(card, player, target) { + target_use(card, player, target) { if (get.tag(card, "multineg")) { return "zerotarget"; } diff --git a/character/extra/skill.js b/character/extra/skill.js index 8f9229c46..3e0ffc3f4 100644 --- a/character/extra/skill.js +++ b/character/extra/skill.js @@ -2327,7 +2327,7 @@ const skills = { ai: { threaten: 1.5, effect: { - target(card, player, target, current) { + target_use(card, player, target, current) { if (get.type(card) == "equip" && !get.cardtag(card, "gifts")) return [1, 0.1]; }, }, @@ -3297,7 +3297,7 @@ const skills = { }, ai: { effect: { - player: (card, player, target) => { + player_use(card, player, target) { if (typeof card !== "object") return; let suit = get.suit(card); if ( @@ -4286,7 +4286,7 @@ const skills = { }, ai: { effect: { - target(card, player, target) { + target_use(card, player, target) { if (card && card.name == "qizhengxiangsheng") return "zeroplayertarget"; }, }, @@ -4413,7 +4413,7 @@ const skills = { global: { ai: { effect: { - player: (card, player, target) => { + player_use(card, player, target) { let num = 0, nohave = true; game.countPlayer(i => { @@ -4529,7 +4529,7 @@ const skills = { }, ai: { effect: { - target(card, player, target, current, isLink) { + target_use(card, player, target, current, isLink) { if (card.name == "sha" && !isLink && player.hp > target.hp) return 0.5; }, },