From 200bcfe74677dfeadd567bdfe3a465c5e8f82048 Mon Sep 17 00:00:00 2001 From: mengxinzxz <139629761+mengxinzxz@users.noreply.github.com> Date: Wed, 23 Aug 2023 13:04:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=AA=E5=8E=9F=E7=8E=8B=E6=B0=8F=E3=80=90?= =?UTF-8?q?=E4=B8=AD=E6=B5=81=E3=80=91=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复【中流】发动条件与实际效果相反的bug --- character/clan.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/character/clan.js b/character/clan.js index 985ec60c7..1f2dddc05 100644 --- a/character/clan.js +++ b/character/clan.js @@ -831,14 +831,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){ if(!event.cards.length) return true; var cards=[]; game.countPlayer(current=>{ - if(!current.hasClan('太原王氏')) return false; + if(!current.hasClan('太原王氏')&¤t!=player) return false; current.getHistory('lose',evt=>{ if(event!=evt.getParent()) return false; cards.addArray(evt.getl(current).hs); }); - }) - if(event.cards.some(card=>!cards.contains(card))) return false; - return true; + }); + return !event.cards.some(card=>cards.contains(card)); }, content:function(){ 'step 0'