diff --git a/How-to-add-a-new-ability.md b/How-to-add-a-new-ability.md index 0212d43..52b3c8b 100644 --- a/How-to-add-a-new-ability.md +++ b/How-to-add-a-new-ability.md @@ -160,7 +160,8 @@ static void Cmd_weatherdamage(void) static void Cmd_sethail(void) { - if (gBattleWeather & WEATHER_HAIL_ANY) +- if (gBattleWeather & WEATHER_HAIL) ++ if (gBattleWeather & WEATHER_HAIL_ANY) { gMoveResultFlags |= MOVE_RESULT_MISSED; gBattleCommunication[MULTISTRING_CHOOSER] = 2;