guohe,shunshou lib.filter参数修复

This commit is contained in:
kuangshen04 2024-01-22 15:27:27 +08:00
parent 7b994e53cb
commit 18b78a950a
1 changed files with 2 additions and 2 deletions

View File

@ -1306,7 +1306,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
}, },
filterTarget:function(card,player,target){ filterTarget:function(card,player,target){
if(player==target) return false; if(player==target) return false;
return target.hasCard(card=>lib.filter.canBeGained(card,target,player),get.is.single()?'he':'hej'); return target.hasCard(card=>lib.filter.canBeGained(card,player,target),get.is.single()?'he':'hej');
}, },
content:function(){ content:function(){
let pos=get.is.single()?'he':'hej'; let pos=get.is.single()?'he':'hej';
@ -1563,7 +1563,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
}, },
filterTarget:function(card,player,target){ filterTarget:function(card,player,target){
if(player==target) return false; if(player==target) return false;
return target.hasCard(card=>lib.filter.canBeDiscarded(card,target,player),get.is.single()?'he':'hej'); return target.hasCard(card=>lib.filter.canBeDiscarded(card,player,target),get.is.single()?'he':'hej');
}, },
defaultYingbianEffect:'add', defaultYingbianEffect:'add',
content:function(){ content:function(){