This commit is contained in:
libccy 2017-04-02 16:34:40 +08:00
parent 19d3fbd738
commit 319025fd5c
1 changed files with 6 additions and 2 deletions

View File

@ -25156,15 +25156,19 @@
else{ else{
if(card.ai.basic.equipValue==undefined) card.ai.basic.equipValue=1; if(card.ai.basic.equipValue==undefined) card.ai.basic.equipValue=1;
} }
if(card.ai.basic.value==undefined)card.ai.basic.value=function(card,player){ if(card.ai.basic.value==undefined) card.ai.basic.value=function(card,player){
var value=0; var value=0;
var info=get.info(card); var info=get.info(card);
var current=player.getEquip(info.subtype); var current=player.getEquip(info.subtype);
if(current&&card!=current){ if(current&&card!=current){
value=ai.get.value(current,player); value=ai.get.value(current,player);
} }
var equipValue=info.ai.equipValue||info.ai.basic.equipValue; var equipValue=info.ai.equipValue;
if(equipValue==undefined){
equipValue=info.ai.basic.equipValue;
}
if(typeof equipValue=='function') return equipValue(card,player)-value; if(typeof equipValue=='function') return equipValue(card,player)-value;
if(typeof equipValue!='number') equipValue=0;
return equipValue-value; return equipValue-value;
} }
card.ai.result.target=(function(name){ card.ai.result.target=(function(name){