Merge pull request #1899 from BuffelSaft/softlock

Fix Cherrim softlock
This commit is contained in:
Eduardo Quezada D'Ottone 2021-11-13 23:03:27 -03:00 committed by GitHub
commit 80f531e03b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3792,7 +3792,7 @@ u8 TryWeatherFormChange(u8 battler)
ret = 0;
else if (gBattleMonForms[battler] == 0 && weatherEffect && holdEffect != HOLD_EFFECT_UTILITY_UMBRELLA && gBattleWeather & WEATHER_SUN_ANY)
ret = 2;
else if (gBattleMonForms[battler] != 0 && (!weatherEffect || holdEffect != HOLD_EFFECT_UTILITY_UMBRELLA || !(gBattleWeather & WEATHER_SUN_ANY)))
else if (gBattleMonForms[battler] != 0 && (!weatherEffect || holdEffect == HOLD_EFFECT_UTILITY_UMBRELLA || !(gBattleWeather & WEATHER_SUN_ANY)))
ret = 1;
}