mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-19 01:44:20 +01:00
fixed Eiscue + multiple weather form changes at once (probably)
This commit is contained in:
parent
2017bee3f8
commit
b856cb3e62
@ -2566,13 +2566,13 @@ u8 DoFieldEndTurnEffects(void)
|
||||
case ENDTURN_WEATHER_FORM:
|
||||
for (i = 0; i < gBattlersCount; ++i)
|
||||
{
|
||||
// This breaks Eiscue right now, because Eiscue doesn't use FORM_CHANGE_BATTLE_WEATHER.
|
||||
if(TryBattleFormChange(i, FORM_CHANGE_BATTLE_WEATHER))
|
||||
if (AbilityBattleEffects(ABILITYEFFECT_ON_WEATHER, i, 0, 0, 0))
|
||||
{
|
||||
BattleScriptPushCursorAndCallback(BattleScript_BattlerFormChangeWithStringEnd3);
|
||||
effect++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (effect == 0)
|
||||
gBattleStruct->turnCountersTracker++;
|
||||
break;
|
||||
case ENDTURN_STATUS_HEAL:
|
||||
@ -6163,7 +6163,7 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u16 ability, u8 special, u16 move
|
||||
#else
|
||||
TRY_WEATHER_FORM:
|
||||
#endif
|
||||
if (IsBattlerWeatherAffected(battler, gBattleWeather)
|
||||
if ((IsBattlerWeatherAffected(battler, gBattleWeather) || gBattleWeather == B_WEATHER_NONE)
|
||||
&& TryBattleFormChange(battler, FORM_CHANGE_BATTLE_WEATHER))
|
||||
{
|
||||
BattleScriptPushCursorAndCallback(BattleScript_BattlerFormChangeWithStringEnd3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user