From 83a995563c5c70aeda43c1713b4adb310036ffc2 Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Thu, 1 Feb 2024 09:08:47 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:gat=E2=86=92get?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/collab.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/character/collab.js b/character/collab.js index 307213d25..ddb9c9ccc 100644 --- a/character/collab.js +++ b/character/collab.js @@ -153,14 +153,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){ trigger:{player:'phaseZhunbeiBegin'}, filter(event,player){ return game.hasPlayer(target=>{ - return target.countCards('ej',card=>get.name(card,false)=='qinggang'||gat.name(card,get.owner(card))=='qinggang'); + return target.countCards('ej',card=>get.name(card,false)=='qinggang'||get.name(card,get.owner(card))=='qinggang'); }); }, content(){ let cards=[],targets=game.filterPlayer(target=>{ - return target.countCards('ej',card=>get.name(card,false)=='qinggang'||gat.name(card,get.owner(card))=='qinggang'); + return target.countCards('ej',card=>get.name(card,false)=='qinggang'||get.name(card,get.owner(card))=='qinggang'); }); - targets.forEach(target=>cards.addArray(target.getCards('ej',card=>get.name(card,false)=='qinggang'||gat.name(card,get.owner(card))=='qinggang'))); + targets.forEach(target=>cards.addArray(target.getCards('ej',card=>get.name(card,false)=='qinggang'||get.name(card,get.owner(card))=='qinggang'))); player.gain(cards,'give'); }, },