Don't use Protect when burned
This commit is contained in:
parent
143cb7ad35
commit
30dd8942e5
1 changed files with 11 additions and 18 deletions
|
@ -2430,32 +2430,23 @@ AI_CV_Curse_End:
|
|||
AI_CV_Protect:
|
||||
get_protect_count AI_USER
|
||||
if_more_than 1, AI_CV_Protect_ScoreDown2
|
||||
if_status AI_USER, STATUS1_TOXIC_POISON, AI_CV_Protect3
|
||||
if_status2 AI_USER, STATUS2_CURSED, AI_CV_Protect3
|
||||
if_status3 AI_USER, STATUS3_PERISH_SONG, AI_CV_Protect3
|
||||
if_status2 AI_USER, STATUS2_INFATUATION, AI_CV_Protect3
|
||||
if_status3 AI_USER, STATUS3_LEECHSEED, AI_CV_Protect3
|
||||
if_status3 AI_USER, STATUS3_YAWN, AI_CV_Protect3
|
||||
if_status AI_USER, STATUS1_PSN_ANY | STATUS1_BURN, AI_CV_ProtectUserStatused
|
||||
if_status2 AI_USER, STATUS2_CURSED | STATUS2_INFATUATION, AI_CV_ProtectUserStatused
|
||||
if_status3 AI_USER, STATUS3_PERISH_SONG | STATUS3_LEECHSEED | STATUS3_YAWN, AI_CV_ProtectUserStatused
|
||||
if_has_move_with_effect AI_TARGET, EFFECT_RESTORE_HP, AI_CV_Protect3
|
||||
if_has_move_with_effect AI_TARGET, EFFECT_DEFENSE_CURL, AI_CV_Protect3
|
||||
if_status AI_TARGET, STATUS1_TOXIC_POISON, AI_CV_Protect_ScoreUp2
|
||||
if_status2 AI_TARGET, STATUS2_CURSED, AI_CV_Protect_ScoreUp2
|
||||
if_status3 AI_TARGET, STATUS3_PERISH_SONG, AI_CV_Protect_ScoreUp2
|
||||
if_status2 AI_TARGET, STATUS2_INFATUATION, AI_CV_Protect_ScoreUp2
|
||||
if_status3 AI_TARGET, STATUS3_LEECHSEED, AI_CV_Protect_ScoreUp2
|
||||
if_status3 AI_TARGET, STATUS3_YAWN, AI_CV_Protect_ScoreUp2
|
||||
if_status2 AI_TARGET, STATUS2_CURSED | STATUS2_INFATUATION, AI_CV_Protect_ScoreUp2
|
||||
if_status3 AI_TARGET, STATUS3_PERISH_SONG | STATUS3_LEECHSEED | STATUS3_YAWN, AI_CV_Protect_ScoreUp2
|
||||
get_last_used_bank_move AI_TARGET
|
||||
get_move_effect_from_result
|
||||
if_not_equal EFFECT_LOCK_ON, AI_CV_Protect_ScoreUp2
|
||||
goto AI_CV_Protect2
|
||||
|
||||
AI_CV_Protect_ScoreUp2:
|
||||
score +2
|
||||
|
||||
AI_CV_Protect2:
|
||||
if_random_less_than 128, AI_CV_Protect4
|
||||
score -1
|
||||
|
||||
AI_CV_Protect4:
|
||||
get_protect_count AI_USER
|
||||
if_equal 0, AI_CV_Protect_End
|
||||
|
@ -2463,15 +2454,17 @@ AI_CV_Protect4:
|
|||
if_random_less_than 128, AI_CV_Protect_End
|
||||
score -1
|
||||
goto AI_CV_Protect_End
|
||||
|
||||
AI_CV_ProtectUserStatused:
|
||||
score -1
|
||||
if_double_battle AI_CV_Protect4
|
||||
score -1
|
||||
goto AI_CV_Protect4
|
||||
AI_CV_Protect3:
|
||||
get_last_used_bank_move AI_TARGET
|
||||
get_move_effect_from_result
|
||||
if_not_equal EFFECT_LOCK_ON, AI_CV_Protect_End
|
||||
|
||||
AI_CV_Protect_ScoreDown2:
|
||||
score -2
|
||||
|
||||
AI_CV_Protect_End:
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue