From b29313dadedd386cb277af5a7de9fe2f19e9e59c Mon Sep 17 00:00:00 2001 From: libccy Date: Mon, 27 Mar 2017 18:01:48 +0800 Subject: [PATCH] e --- character/hearth.js | 4 ++-- character/yxs.js | 4 ++-- mode/guozhan.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/character/hearth.js b/character/hearth.js index db4a4ad47..ef1783107 100644 --- a/character/hearth.js +++ b/character/hearth.js @@ -1098,9 +1098,9 @@ character.hearth={ frequent:true, usable:1, filter:function(event){ - return event.target.num('e',function(card){ + return event.target.hasCard(function(card){ return !get.info(card).unique; - })>0; + },'e'); }, content:function(){ player.gain(game.createCard(trigger.target.getCards('e',function(card){ diff --git a/character/yxs.js b/character/yxs.js index 70baba4df..b49e18563 100644 --- a/character/yxs.js +++ b/character/yxs.js @@ -2684,9 +2684,9 @@ character.yxs={ enable:'phaseUse', usable:1, filterTarget:function(card,player,target){ - return player!=target&&target.num('e',function(card){ + return player!=target&&target.hasCard(function(card){ return !get.info(card).unique; - }); + },'e'); }, check:function(card){ return 6-ai.get.value(card); diff --git a/mode/guozhan.js b/mode/guozhan.js index c5e8fef48..ad02c9314 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -434,7 +434,7 @@ mode.guozhan={ if(ui.discardPile.childNodes[i].name=='taipingyaoshu') return true; } return game.hasPlayer(function(current){ - return current!=player&¤t.num('ej','taipingyaoshu'); + return current!=player&¤t.countCards('ej','taipingyaoshu'); }); }, content:function(){