From b323fd836c1262e17a8cb88bf67f81845b97e84c Mon Sep 17 00:00:00 2001 From: kuangshen04 <2832899707@qq.com> Date: Mon, 22 Jan 2024 13:37:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DarrangeTrigger=E5=BF=BD?= =?UTF-8?q?=E7=95=A5invisibleSkills=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/library/element/content.js | 5 +---- noname/library/index.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/noname/library/element/content.js b/noname/library/element/content.js index b141b113b..9a4e26cc3 100644 --- a/noname/library/element/content.js +++ b/noname/library/element/content.js @@ -2017,10 +2017,7 @@ export const Content = { event.doing = doingList.shift(); while(true){ if (trigger.filterStop && trigger.filterStop()) return; - const usableSkills = event.doing.todoList.filter(info => { - if (!lib.filter.filterTrigger(trigger, info.player, event.triggername, info.skill)) return false; - return lib.skill.global.includes(info.skill) || info.player.hasSkill(info.skill, true); - }); + const usableSkills = event.doing.todoList.filter(info => lib.filter.filterTrigger(trigger, info.player, event.triggername, info.skill)); if (usableSkills.length == 0){ break; } diff --git a/noname/library/index.js b/noname/library/index.js index de78ae4b6..6f2df5166 100644 --- a/noname/library/index.js +++ b/noname/library/index.js @@ -9703,7 +9703,7 @@ export class Library extends Uninstantable { console.error(new ReferenceError('缺少info的技能:', skill)); return false; } - if (!game.expandSkills(player.getSkills(true).concat(lib.skill.global)).includes(skill)) return false; + if (!game.expandSkills(player.getSkills('invisible').concat(lib.skill.global)).includes(skill)) return false; if (!game.expandSkills(player.getSkills(false).concat(lib.skill.global)).includes(skill)) {//hiddenSkills if (get.mode() != 'guozhan') return false; if (info.noHidden) return false;