From b00b6a6eda3c61bac360d5f7cef5b86fff60d077 Mon Sep 17 00:00:00 2001 From: kuangshen04 <2832899707@qq.com> Date: Sun, 3 Dec 2023 11:29:01 +0800 Subject: [PATCH] bugfix --- game/game.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/game.js b/game/game.js index 1a58faa54..65f37e630 100644 --- a/game/game.js +++ b/game/game.js @@ -22880,6 +22880,7 @@ new Promise(resolve=>{ delete this.name; delete this.name1; + delete this.tempname; delete this.sex; delete this.group; delete this.hp; @@ -27797,7 +27798,7 @@ new Promise(resolve=>{ if(info.trigger&&this.playerid){ const removeTrigger=(role,evt)=>{ const name=this.playerid+'_'+role+'_'+evt; - if(lib.hook[name]) return; + if(!lib.hook[name]) return; lib.hook[name].remove(skill); if(lib.hook[name].length==0) delete lib.hook[name]; }