From f69bff6605554322c00f301ff574c7153991bc36 Mon Sep 17 00:00:00 2001 From: Lukien <75408859+Lukien@users.noreply.github.com> Date: Sun, 31 Jan 2021 22:43:16 -0500 Subject: [PATCH] Update battle_util.c Added weather check for the ability Sand Force. --- src/battle_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/battle_util.c b/src/battle_util.c index b929b7499d..9ba2da4385 100644 --- a/src/battle_util.c +++ b/src/battle_util.c @@ -6624,7 +6624,8 @@ static u32 CalcMoveBasePowerAfterModifiers(u16 move, u8 battlerAtk, u8 battlerDe MulModifier(&modifier, UQ_4_12(1.3)); break; case ABILITY_SAND_FORCE: - if (moveType == TYPE_STEEL || moveType == TYPE_ROCK || moveType == TYPE_GROUND) + if ((moveType == TYPE_STEEL || moveType == TYPE_ROCK || moveType == TYPE_GROUND) + && WEATHER_HAS_EFFECT && gBattleWeather & WEATHER_SANDSTORM_ANY) MulModifier(&modifier, UQ_4_12(1.3)); break; case ABILITY_RIVALRY: