Updated Cmd_jumpifsideaffecting (#3200)

This commit is contained in:
ghoulslash 2023-08-04 07:32:54 -04:00 committed by GitHub
commit dc1d44eefd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4183,11 +4183,7 @@ static void Cmd_jumpifsideaffecting(void)
u32 flags;
const u8 *jumpInstr;
if (cmd->battler == BS_ATTACKER)
side = GET_BATTLER_SIDE(gBattlerAttacker);
else
side = GET_BATTLER_SIDE(gBattlerTarget);
side = GET_BATTLER_SIDE(GetBattlerForBattleScript(cmd->battler));
flags = cmd->flags;
jumpInstr = cmd->jumpInstr;