Battle Weather Refactor oversight (#5960)

This commit is contained in:
Alex 2025-01-06 12:14:13 +01:00 committed by GitHub
parent 5317371fea
commit bc409b3028
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4043,7 +4043,7 @@ bool32 TryChangeBattleWeather(u32 battler, u32 battleWeatherId, bool32 viaAbilit
gBattleWeather = sBattleWeatherInfo[battleWeatherId].flag;
if (gBattleWeather & B_WEATHER_PRIMAL_ANY)
gWishFutureKnock.weatherDuration = 0;
if (rock != 0 && GetBattlerHoldEffect(battler, TRUE) == rock)
else if (rock != 0 && GetBattlerHoldEffect(battler, TRUE) == rock)
gWishFutureKnock.weatherDuration = 8;
else
gWishFutureKnock.weatherDuration = 5;