This commit is contained in:
libccy 2018-08-12 02:06:04 +08:00
parent 0c852c7765
commit 8761e6631e
1 changed files with 10 additions and 2 deletions

View File

@ -716,11 +716,19 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
forced:true,
unique:true,
filter:function(event,player){
return game.hasPlayer(function(current){
if(game.hasPlayer(function(current){
return current.countCards('ej',function(card){
return card.name=='dinglanyemingzhu';
});
});
})){
return true;
}
for(var i=0;i<ui.discardPile.childElementCount;i++){
if(ui.discardPile.childNodes[i].name=='dinglanyemingzhu'){
return true;
}
}
return false;
},
content:function(){
'step 0'