summaryrefslogtreecommitdiff
path: root/src/pokemon.c
diff options
context:
space:
mode:
authorThomas Winwood <twwinwood@7storm.org>2019-11-20 16:37:14 +0000
committerhuderlem <huderlem@gmail.com>2019-11-23 07:53:26 -0600
commite3f7f47321bbe399dfcfc422d53d9beb5caab788 (patch)
tree01e4deb046a3d1b694145101dae883869ae392da /src/pokemon.c
parent215bb31d67398386d3554d31f55dbe495e7f6b6f (diff)
Turn some magic numbers into named constants
Diffstat (limited to 'src/pokemon.c')
-rw-r--r--src/pokemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pokemon.c b/src/pokemon.c
index a30e20ea2..eba5a2ce2 100644
--- a/src/pokemon.c
+++ b/src/pokemon.c
@@ -3271,7 +3271,7 @@ s32 CalculateBaseDamage(struct BattlePokemon *attacker, struct BattlePokemon *de
}
// any weather except sun weakens solar beam
- if ((gBattleWeather & (WEATHER_RAIN_ANY | WEATHER_SANDSTORM_ANY | WEATHER_HAIL)) && gCurrentMove == MOVE_SOLAR_BEAM)
+ if ((gBattleWeather & (WEATHER_RAIN_ANY | WEATHER_SANDSTORM_ANY | WEATHER_HAIL_ANY)) && gCurrentMove == MOVE_SOLAR_BEAM)
damage /= 2;
// sunny