Fix weather for pre gen6
This commit is contained in:
parent
621dd4f0bf
commit
780517fec7
1 changed files with 1 additions and 2 deletions
|
@ -2666,8 +2666,7 @@ bool32 TryChangeBattleWeather(u8 battler, u32 weatherEnumId, bool32 viaAbility)
|
||||||
gBattleWeather = (sWeatherFlagsInfo[weatherEnumId][0] | sWeatherFlagsInfo[weatherEnumId][1]);
|
gBattleWeather = (sWeatherFlagsInfo[weatherEnumId][0] | sWeatherFlagsInfo[weatherEnumId][1]);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else if (B_ABILITY_WEATHER > GEN_5
|
else if (!(gBattleWeather & (sWeatherFlagsInfo[weatherEnumId][0] | sWeatherFlagsInfo[weatherEnumId][1])))
|
||||||
&& !(gBattleWeather & (sWeatherFlagsInfo[weatherEnumId][0] | sWeatherFlagsInfo[weatherEnumId][1])))
|
|
||||||
{
|
{
|
||||||
gBattleWeather = (sWeatherFlagsInfo[weatherEnumId][0]);
|
gBattleWeather = (sWeatherFlagsInfo[weatherEnumId][0]);
|
||||||
if (GetBattlerHoldEffect(battler, TRUE) == sWeatherFlagsInfo[weatherEnumId][2])
|
if (GetBattlerHoldEffect(battler, TRUE) == sWeatherFlagsInfo[weatherEnumId][2])
|
||||||
|
|
Loading…
Reference in a new issue