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

@ -25163,8 +25163,12 @@
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){