mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-24 13:15:28 +01:00
fix AI_WeatherHasEffect
This commit is contained in:
parent
44a124acb7
commit
24b19eb9a4
@ -1130,17 +1130,17 @@ 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 TRUE;
|
||||
}
|
||||
|
||||
bool32 IsAromaVeilProtectedMove(u16 move)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user