From b78e15e96d472ca7edcbdbc6528fd81b3cb80304 Mon Sep 17 00:00:00 2001 From: 157 <3619242020@qq.com> Date: Sat, 11 May 2024 14:22:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E3=80=90=E4=BC=AA=E5=B8=9D=E3=80=91?= =?UTF-8?q?=E3=80=90=E5=87=BA=E5=B8=88=E3=80=91=E3=80=90=E5=88=B6=E7=9A=87?= =?UTF-8?q?=E3=80=91=E6=B7=BB=E5=8A=A0available?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/diy/skill.js | 7 +++++++ character/jsrg/skill.js | 3 +++ character/sp/skill.js | 3 +++ 3 files changed, 13 insertions(+) diff --git a/character/diy/skill.js b/character/diy/skill.js index 3ba825770..ced47b971 100644 --- a/character/diy/skill.js +++ b/character/diy/skill.js @@ -1918,6 +1918,13 @@ const skills = { }, }, nszhihuang: { + available(mode) { + return ( + mode == "identity" || + mode == "versus" && (_status.mode == "four" || _status.mode == "guandu") || + mode == "guozhan" + ); + }, group: "nszhihuang_damage", trigger: { global: "useCard" }, usable: 1, diff --git a/character/jsrg/skill.js b/character/jsrg/skill.js index 884ef38e4..6df980913 100644 --- a/character/jsrg/skill.js +++ b/character/jsrg/skill.js @@ -137,6 +137,9 @@ const skills = { }, }, jsrgchushi: { + available(mode) { + return mode == "identity" || mode == "versus" && (_status.mode == "four" || _status.mode == "guandu"); + }, audio: 2, enable: "phaseUse", usable: 1, diff --git a/character/sp/skill.js b/character/sp/skill.js index 82dcd4599..8e7463111 100644 --- a/character/sp/skill.js +++ b/character/sp/skill.js @@ -20368,6 +20368,9 @@ const skills = { charlotte: true, }, weidi: { + available(mode) { + return mode == "identity" || mode == "versus" && _status.mode == "four"; + }, init(player) { const list = []; const zhu = get.zhu(player);