From 82616cec47198272c365b9afe722b38573862e73 Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Sun, 28 Jan 2024 17:31:13 +0800 Subject: [PATCH] small bugfix --- character/tw.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/character/tw.js b/character/tw.js index e8977bb2e..8652d06ec 100644 --- a/character/tw.js +++ b/character/tw.js @@ -310,8 +310,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){ if(num) target.draw(num); target.when('phaseDiscardEnd') .then(()=>{ + if(!trigger.cards||!trigger.cards.length||!player.hasDisabledSlot()){ + event.finish(); + return; + } const num=trigger.cards.length; - if(!num||!player.hasDisabledSlot()) return; let list=[]; for(let i=1;i<6;i++){ if(player.hasDisabledSlot(i)){