From 1c1ca4bb8c1e292fe38f5bbb09b9f0dd39a9632f Mon Sep 17 00:00:00 2001 From: libccy Date: Mon, 27 Mar 2017 17:16:40 +0800 Subject: [PATCH] c --- character/gujian.js | 5 +++-- character/shenhua.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/character/gujian.js b/character/gujian.js index 2e3aefa38..8a117659f 100644 --- a/character/gujian.js +++ b/character/gujian.js @@ -473,8 +473,9 @@ character.gujian={ value:function(card,player){ var value=0; var info=get.info(card); - if(player.get('e',info.subtype[5])&&card!=player.get('e',info.subtype[5])){ - value=ai.get.value(player.get('e',info.subtype[5]),player); + var current=player.getEquip(parseInt(info.subtype[5])); + if(current&&card!=current){ + value=ai.get.value(current,player); } var equipValue=info.ai.equipValue||info.ai.basic.equipValue; if(typeof equipValue=='function') return equipValue(card,player)-value; diff --git a/character/shenhua.js b/character/shenhua.js index 43a4692bf..497b47084 100644 --- a/character/shenhua.js +++ b/character/shenhua.js @@ -1313,7 +1313,7 @@ character.shenhua={ }, filterTarget:function(card,player,target){ if(target.isMin()) return false; - return player!=target&&!target.get('e',get.subtype(card)[5]); + return player!=target&&!target.getEquip(parseInt(get.subtype(card)[5])); }, content:function(){ target.equip(cards[0]);