From 8d36f38da599ac5ca21c867b0bf97f4ddc5be565 Mon Sep 17 00:00:00 2001 From: 157 <144450955+PZ157@users.noreply.github.com> Date: Sat, 30 Sep 2023 22:07:47 +0800 Subject: [PATCH] =?UTF-8?q?forceDie=E6=A0=87=E7=AD=BE=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/shiji.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/character/shiji.js b/character/shiji.js index f0d9d60f9..1cc83d19c 100644 --- a/character/shiji.js +++ b/character/shiji.js @@ -5918,9 +5918,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){ spshanxi_bj:{ trigger:{player:'dieAfter'}, filter:function(event,player){ - return !game.hasPlayer(current=>current.hasSkill('spshanxi_suoming')); + for(let i of game.players){ + if(i.hasSkill('spshanxi_suoming')) return false; + } + return true; }, silent:true, + forceDie:true, charlotte:true, content:function(){ game.removeGlobalSkill('spshanxi_bj');