文丑【狭勇】bugfix2

This commit is contained in:
mengxinzxz 2024-03-16 15:49:24 +08:00
parent 93c3ee1546
commit f03ac4c236
1 changed files with 7 additions and 1 deletions

View File

@ -638,7 +638,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
filter(event,player){
if(event.getParent().type!='card'||event.card.name!='juedou'||!event.player.isIn()) return false;
const evt=game.getGlobalHistory('useCard',evt=>evt.card==event.card)[0];
return evt&&evt.player!=event.player&&[evt.player,event.player].includes(player)&&(event.player!=player||player.countCards('h'));
if(evt&&evt.targets&&(event.player!=player||player.countCards('h'))){
if(evt.player==player){
return evt.targets.includes(event.player)&&event.player!=player;
}
return evt.targets.includes(player)&&evt.player!=player;
}
return false;
},
forced:true,
logTarget:'player',