diff --git a/data/scripts/debug.inc b/data/scripts/debug.inc index f9ac3ac23..f86de38f5 100644 --- a/data/scripts/debug.inc +++ b/data/scripts/debug.inc @@ -68,12 +68,6 @@ Debug_FlagsNotSetBattleConfigMessage_Text: .string "'include/config/battle.h'!$" Debug_Script_1:: - givemon SPECIES_TREECKO, 20, ITEM_NONE - givemon SPECIES_TORCHIC, 20, ITEM_NONE - giveitem ITEM_REVIVE, 3 - giveitem ITEM_HYPER_POTION, 3 - setwildbattle SPECIES_UNOWN, 20, 0, SPECIES_UNOWN, 20, 0 - dowildbattle end Debug_Script_2:: diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 9cf0eb11d..9970f1d13 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -16324,7 +16324,7 @@ void BS_CheckParentalBondCounter(void) void BS_GetBattlerSide(void) { NATIVE_ARGS(u8 battler); - gBattleCommunication[0] = GetBattlerSide(cmd->battler); + gBattleCommunication[0] = GetBattlerSide(GetBattlerForBattleScript(cmd->battler)); gBattlescriptCurrInstr = cmd->nextInstr; }