This commit is contained in:
libccy 2017-03-27 17:16:40 +08:00
parent df742e4737
commit 1c1ca4bb8c
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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]);