From ca6c3465b98bf1e02cb623b97aaa50ce3d9caf1f Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Sat, 16 Mar 2024 11:17:38 +0800 Subject: [PATCH] bugfix --- character/tw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/character/tw.js b/character/tw.js index a8066b4be..f0edc3b45 100644 --- a/character/tw.js +++ b/character/tw.js @@ -381,7 +381,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ return evt.card.name=='juedou'; }).length,targets=game.players.slice().concat(game.dead.slice()); for(const target of targets){ - num+=target.getHistory('useCard',evt=>{ + num+=target.actionHistory[i].useCard.filter(evt=>{ return evt.card.name=='juedou'&&evt.targets&&evt.targets.includes(player); }).length; }