修复【毒】赠予弹窗
This commit is contained in:
parent
0803a4e8af
commit
3c14fcae7f
|
@ -527,15 +527,15 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
||||||
if(event.name=='phase'){
|
if(event.name=='phase'){
|
||||||
if(game.phaseNumber!=0) return false;
|
if(game.phaseNumber!=0) return false;
|
||||||
if(!player._start_cards) return false;
|
if(!player._start_cards) return false;
|
||||||
var hs=player.getCards('h');
|
let hs=player.getCards('h');
|
||||||
for(var card of player._start_cards){
|
for(let card of player._start_cards){
|
||||||
if(get.name(card,player)=='du'&&hs.includes(card)) return true;
|
if(get.name(card,player)=='du'&&hs.includes(card)) return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(event.getParent().name!='draw') return false;
|
if(event.getParent().name!='draw') return false;
|
||||||
var hs=player.getCards('h');
|
let hs=player.getCards('h');
|
||||||
for(var card of event.cards){
|
for(let card of event.getg(player)){
|
||||||
if(get.name(card,player)=='du'&&hs.includes(card)) return true;
|
if(get.name(card,player)=='du'&&hs.includes(card)) return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue