diff --git a/mode/guozhan.js b/mode/guozhan.js index 545b40ee8..e94f1d4d4 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -966,7 +966,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ equipSkill:true, mod:{ maxHandcard:function(player,num){ - if(!player.isEmpty(2)) return; + if(!player.hasEmptySlot(2)) return; if(player.hasSkill('huangjintianbingfu')){ num+=player.getExpansions('huangjintianbingfu').length; } @@ -978,14 +978,14 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ audio:'tianshu', inherit:'taipingyaoshu', filter:function(event,player){ - if(!player.isEmpty(2)) return false; + if(!player.hasEmptySlot(2)) return false; return lib.skill.taipingyaoshu.filter(event,player); }, noHidden:true, ai:{ effect:{ target:function(card,player,target){ - if(!target.isEmpty(2)) return; + if(!target.hasEmptySlot(2)) return; if(player==target&&get.subtype(card)=='equip2'){ if(get.equipValue(card)<=7.5) return 0; } @@ -12127,7 +12127,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ if(player==target) return false; var card=ui.selected.cards[0]; if(get.type(card)!='equip') return true; - return target.isEmpty(get.subtype(card)); + return target.canEquip(card); }, prompt:get.prompt2('gzhuyuan'), complexSelect:true, @@ -12193,7 +12193,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, position:'he', filterTarget:function(card,player,target){ - return target.isEmpty(get.subtype(card)); + return target.canEquip(card); }, ai1:function(card){ return 6-get.value(card);