From 24b19eb9a43be5fa16c053134ace1c66529edf20 Mon Sep 17 00:00:00 2001 From: Evan Date: Fri, 15 Jan 2021 21:29:39 -0700 Subject: [PATCH] fix AI_WeatherHasEffect --- src/battle_ai_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/battle_ai_util.c b/src/battle_ai_util.c index a55f65a54b..28d921a06e 100644 --- a/src/battle_ai_util.c +++ b/src/battle_ai_util.c @@ -1130,16 +1130,16 @@ bool32 AI_WeatherHasEffect(void) { u32 i; if (AI_THINKING_STRUCT->aiFlags & AI_FLAG_NEGATE_UNAWARE) - return FALSE; // AI doesn't understand weather supression (handicap) + return TRUE; // AI doesn't understand weather supression (handicap) // need to manually check since we don't necessarily know opponent ability for (i = 0; i < gBattlersCount; i++) { if (IsBattlerAlive(i) && (AI_GetAbility(i) == ABILITY_AIR_LOCK || AI_GetAbility(i) == ABILITY_CLOUD_NINE)) - return TRUE; + return FALSE; } - return FALSE; + return TRUE; } bool32 IsAromaVeilProtectedMove(u16 move)