From 4a5a84e5c74002e54f7d75056e5127a15955567b Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Sun, 19 Jan 2020 11:07:09 +0100 Subject: [PATCH] Facade AI fix; AI uses fake out more often --- data/battle_ai_scripts.s | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/data/battle_ai_scripts.s b/data/battle_ai_scripts.s index ded37dc7d..42fb84e05 100644 --- a/data/battle_ai_scripts.s +++ b/data/battle_ai_scripts.s @@ -2852,7 +2852,13 @@ AI_CV_Fly_TypesToEncourage: .byte -1 AI_CV_FakeOut: + if_ability AI_TARGET, ABILITY_INNER_FOCUS, AI_CV_FakeOut_End + if_double_battle AI_CV_FakeOut_Double + score +5 + end +AI_CV_FakeOut_Double: score +2 +AI_CV_FakeOut_End: end AI_CV_SpitUp: @@ -2917,9 +2923,8 @@ AI_CV_Sandstorm_AbilityPlus: AI_CV_Sandstorm_End: end -@ BUG: Facade score is increased if the target is statused, but should be if the user is. Replace AI_TARGET with AI_USER AI_CV_Facade: - if_not_status AI_TARGET, STATUS1_POISON | STATUS1_BURN | STATUS1_PARALYSIS | STATUS1_TOXIC_POISON, AI_CV_Facade_End + if_not_status AI_USER, STATUS1_POISON | STATUS1_BURN | STATUS1_PARALYSIS | STATUS1_TOXIC_POISON, AI_CV_Facade_End score +1 AI_CV_Facade_End: end