Blizzard 100% accuracy in hail

This commit is contained in:
DizzyEggg 2019-08-05 11:39:31 +02:00
parent 34a7b8bf76
commit 8542e7fb1f

View File

@ -1181,7 +1181,9 @@ static bool32 AccuracyCalcHelper(u16 move)
return TRUE;
}
if ((WEATHER_HAS_EFFECT && (gBattleWeather & WEATHER_RAIN_ANY) && (gBattleMoves[move].effect == EFFECT_THUNDER || gBattleMoves[move].effect == EFFECT_HURRICANE))
if ((WEATHER_HAS_EFFECT &&
(((gBattleWeather & WEATHER_RAIN_ANY) && (gBattleMoves[move].effect == EFFECT_THUNDER || gBattleMoves[move].effect == EFFECT_HURRICANE))
|| (((gBattleWeather & WEATHER_HAIL_ANY) && move == MOVE_BLIZZARD))))
|| (gBattleMoves[move].effect == EFFECT_VITAL_THROW)
|| (gBattleMoves[move].accuracy == 0))
{