From 61ed6c8ba5da2e4bb4eda666d3a982f743ce1ac8 Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Thu, 21 Mar 2024 21:28:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=8F=E9=92=9F=E4=BC=9A=E3=80=90=E6=8C=9F?= =?UTF-8?q?=E6=9C=AF=E3=80=91bugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/clan.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/character/clan.js b/character/clan.js index a97482f75..b7098dbd7 100644 --- a/character/clan.js +++ b/character/clan.js @@ -473,11 +473,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){ trigger:{player:'damageEnd',source:'damageSource'}, filter(event,player){ if(!event.card||player.isLinked()) return false; - const history=game.checkGlobalHistory('damage',evt=>{ - if(!evt.card) return false; + if(game.getGlobalHistory('everything',evt=>{ + if(evt.name!='damage'||!evt.card) return false; return evt.player==player||(evt.source&&evt.source==player); - }); - if(history.indexOf(event)!=0) return false; + }).indexOf(event)!=0) return false; var num=get.cardNameLength(event.card); return typeof num=='number'&&num>0&&player.countCards('he')>0; },