修复并优化【杀】ai
This commit is contained in:
parent
386742f975
commit
122a2d1418
|
@ -155,8 +155,10 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
||||||
next.set('useShan',(()=>{
|
next.set('useShan',(()=>{
|
||||||
if(target.hasSkillTag('noShan',null,event)) return false;
|
if(target.hasSkillTag('noShan',null,event)) return false;
|
||||||
if(target.hasSkillTag('useShan',null,event)) return true;
|
if(target.hasSkillTag('useShan',null,event)) return true;
|
||||||
if(event.baseDamage+event.extraDamage<=0 || get.attitude(target,player._trueMe||player)>0) bool=false;
|
if(event.baseDamage+event.extraDamage<=0 || get.attitude(target,player._trueMe||player)>0) return false;
|
||||||
if(event.shanRequired>1&&target.countCards('h','shan')<event.shanRequired-(event.shanIgnored||0)) return false;
|
if(event.shanRequired>1&&target.mayHaveShan(target,'use',null,'count')<event.shanRequired-(event.shanIgnored||0)) return false;
|
||||||
|
if(event.baseDamage+event.extraDamage>=target.hp+
|
||||||
|
((player.hasSkillTag('jueqing',false,target)||target.hasSkill('gangzhi'))?target.hujia:0)) return true;
|
||||||
if(get.damageEffect(target,player,target,get.nature(event.card))>=0) return false;
|
if(get.damageEffect(target,player,target,get.nature(event.card))>=0) return false;
|
||||||
return true;
|
return true;
|
||||||
})());
|
})());
|
||||||
|
|
Loading…
Reference in New Issue