修复【毒】赠予弹窗

This commit is contained in:
157 2024-01-24 11:34:53 +08:00
parent 0803a4e8af
commit 3c14fcae7f
1 changed files with 4 additions and 4 deletions

View File

@ -527,15 +527,15 @@ game.import('card',function(lib,game,ui,get,ai,_status){
if(event.name=='phase'){
if(game.phaseNumber!=0) return false;
if(!player._start_cards) return false;
var hs=player.getCards('h');
for(var card of player._start_cards){
let hs=player.getCards('h');
for(let card of player._start_cards){
if(get.name(card,player)=='du'&&hs.includes(card)) return true;
}
}
else{
if(event.getParent().name!='draw') return false;
var hs=player.getCards('h');
for(var card of event.cards){
let hs=player.getCards('h');
for(let card of event.getg(player)){
if(get.name(card,player)=='du'&&hs.includes(card)) return true;
}
}