bugfix:gat→get

This commit is contained in:
mengxinzxz 2024-02-01 09:08:47 +08:00
parent 18b8fb5e22
commit 83a995563c
1 changed files with 3 additions and 3 deletions

View File

@ -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');
},
},