summaryrefslogtreecommitdiff
path: root/src/battle_script_commands.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-01-24 05:11:37 -0500
committerGriffinR <griffin.g.richards@gmail.com>2020-01-24 05:11:37 -0500
commitce5bc554e5739044af0c10eb6cc9231308fb28ce (patch)
tree9bbd647b96b9a44eb897174804bf324861e78874 /src/battle_script_commands.c
parentc63a889bf45d9cd6da0668703fad55941e531fa2 (diff)
parent39556605cd27a567a45bfc2c46af745ac031ab90 (diff)
Merge branch 'doc-ttower' of https://github.com/GriffinRichards/pokefirered into doc-ttower
Diffstat (limited to 'src/battle_script_commands.c')
-rw-r--r--src/battle_script_commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c
index 3b9270948..527e32bcc 100644
--- a/src/battle_script_commands.c
+++ b/src/battle_script_commands.c
@@ -7352,7 +7352,7 @@ static void atk95_setsandstorm(void)
static void atk96_weatherdamage(void)
{
- if (((gBattleTypeFlags & (BATTLE_TYPE_LEGENDARY | BATTLE_TYPE_GHOST)) == BATTLE_TYPE_GHOST)
+ if (IS_BATTLE_TYPE_GHOST_WITHOUT_SCOPE(gBattleTypeFlags)
&& (GetBattlerSide(gBattlerAttacker) == B_SIDE_OPPONENT))
{
gBattleMoveDamage = 0;