From 15ca7ff26ceb15f8afe30addd4263312c52e737d Mon Sep 17 00:00:00 2001 From: 157 <3619242020@qq.com> Date: Sun, 5 May 2024 18:38:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BD=E6=88=98=E3=80=90?= =?UTF-8?q?=E6=9C=9B=E5=BD=92=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/huicui/skill.js | 6 +++++- mode/guozhan.js | 4 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/character/huicui/skill.js b/character/huicui/skill.js index 2bbbd4f66..17f557256 100644 --- a/character/huicui/skill.js +++ b/character/huicui/skill.js @@ -12366,7 +12366,11 @@ const skills = { }, direct: true, filter: function (event, player) { - return player.hasSkill("wanggui") && !player.hasSkill("wanggui2"); + if (!player.hasSkill("wanggui") || player.hasSkill("wanggui2")) return false; + if (!player.isUnseen(2)) return true; + return !player.isUnseen() && [player.name1, player.name2].some(name => { + return get.character(name, 3).includes("wanggui"); + }); }, preHidden: true, content: function () { diff --git a/mode/guozhan.js b/mode/guozhan.js index 396d7a81a..df286370a 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -20617,9 +20617,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) { trigger: { player: ["showCharacterAfter", "removeCharacterBefore"] }, filter: function (event, player) { if (event.name == "removeCharacter" || event.name == "changeVice") - return event.toRemove.some(name => { - return get.character(name, 3).includes("gzguixiu"); - }) && player.isDamaged(); + return get.character(event.toRemove, 3).includes("gzguixiu") && player.isDamaged(); return event.toShow.some(name => { return get.character(name, 3).includes("gzguixiu"); });