Updated Cmd_jumpifsideaffecting

This commit is contained in:
LOuroboros 2023-08-03 14:46:45 -03:00 committed by GitHub
parent cd51471c96
commit 0bace94dc7
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; u32 flags;
const u8 *jumpInstr; const u8 *jumpInstr;
if (cmd->battler == BS_ATTACKER) side = GET_BATTLER_SIDE(GetBattlerForBattleScript(cmd->battler));
side = GET_BATTLER_SIDE(gBattlerAttacker);
else
side = GET_BATTLER_SIDE(gBattlerTarget);
flags = cmd->flags; flags = cmd->flags;
jumpInstr = cmd->jumpInstr; jumpInstr = cmd->jumpInstr;