优化【魂姿】ai

This commit is contained in:
157 2024-01-20 15:58:22 +08:00
parent f0cc3ca986
commit 680b457098
2 changed files with 7 additions and 3 deletions

View File

@ -14332,8 +14332,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
effect:{ effect:{
target:function(card,player,target){ target:function(card,player,target){
if(!target.hasFriend()) return; if(!target.hasFriend()) return;
if(get.tag(card,'damage')==1&&target.hp==3&&!target.isTurnedOver()&& if(target.hp===3&&get.tag(card,'damage')==1&&!target.isTurnedOver()&&
_status.currentPhase!=target&&get.distance(_status.currentPhase,target,'absolute')<=3) return [0.5,1]; _status.currentPhase!=target&&get.distance(_status.currentPhase,target,'absolute')<=3) return [0.5,1];
if(target.hp===1&&get.tag(card,'recover')&&!target.isTurnedOver()&&
_status.currentPhase!==target&&get.distance(_status.currentPhase,target,'absolute')<=3) return [1,-3];
} }
} }
} }

View File

@ -3834,8 +3834,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
effect:{ effect:{
target:function(card,player,target){ target:function(card,player,target){
if(!target.hasFriend()) return; if(!target.hasFriend()) return;
if(get.tag(card,'damage')==1&&target.hp==2&&!target.isTurnedOver()&& if(target.hp===2&&get.tag(card,'damage')==1&&!target.isTurnedOver()&&
_status.currentPhase!=target&&get.distance(_status.currentPhase,target,'absolute')<=3) return [0.5,1]; _status.currentPhase!==target&&get.distance(_status.currentPhase,target,'absolute')<=3) return [0.5,1];
if(target.hp===1&&get.tag(card,'recover')&&!target.isTurnedOver()&&
_status.currentPhase!==target&&get.distance(_status.currentPhase,target,'absolute')<=3) return [1,-3];
} }
} }
} }