summaryrefslogtreecommitdiff
path: root/src/battle_script_commands.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-11-19 10:58:44 -0500
committerGitHub <noreply@github.com>2019-11-19 10:58:44 -0500
commit89dc26755ad2818c10b37a34ed46f5c79dc571c8 (patch)
treeabd075a205c401b3a5406efb37378544e94c9190 /src/battle_script_commands.c
parent83cba310335678aa8ecac24b58708b3c924b581a (diff)
parent63f8834b6bc2d6413da606d7df88a304edc3c625 (diff)
Merge pull request #138 from jiangzhengwenjz/battle
battle (4th take)
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 181f59b09..c5c8e89a4 100644
--- a/src/battle_script_commands.c
+++ b/src/battle_script_commands.c
@@ -7064,7 +7064,7 @@ static void atk8F_forcerandomswitch(void)
u8 valid;
u8 val;
- if (!GetBattlerSide(gBattlerTarget))
+ if (GetBattlerSide(gBattlerTarget) == B_SIDE_PLAYER)
party = gPlayerParty;
else
party = gEnemyParty;