Make return
This commit is contained in:
@@ -4650,8 +4650,7 @@ static void Cmd_switchinanim(void)
|
|||||||
|
|
||||||
static void Cmd_jumpifcantswitch(void)
|
static void Cmd_jumpifcantswitch(void)
|
||||||
{
|
{
|
||||||
s32 i;
|
s32 i, lastMonId;
|
||||||
s32 lastMonId;
|
|
||||||
struct Pokemon *party;
|
struct Pokemon *party;
|
||||||
|
|
||||||
gActiveBattler = GetBattlerForBattleScript(gBattlescriptCurrInstr[1] & ~(SWITCH_IGNORE_ESCAPE_PREVENTION));
|
gActiveBattler = GetBattlerForBattleScript(gBattlescriptCurrInstr[1] & ~(SWITCH_IGNORE_ESCAPE_PREVENTION));
|
||||||
@@ -4661,8 +4660,10 @@ static void Cmd_jumpifcantswitch(void)
|
|||||||
|| (gStatuses3[gActiveBattler] & STATUS3_ROOTED)))
|
|| (gStatuses3[gActiveBattler] & STATUS3_ROOTED)))
|
||||||
{
|
{
|
||||||
gBattlescriptCurrInstr = T1_READ_PTR(gBattlescriptCurrInstr + 2);
|
gBattlescriptCurrInstr = T1_READ_PTR(gBattlescriptCurrInstr + 2);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else if (gBattleTypeFlags & BATTLE_TYPE_INGAME_PARTNER)
|
|
||||||
|
if (gBattleTypeFlags & BATTLE_TYPE_INGAME_PARTNER)
|
||||||
{
|
{
|
||||||
#ifndef NONMATCHING
|
#ifndef NONMATCHING
|
||||||
asm("":::"r5");
|
asm("":::"r5");
|
||||||
|
|||||||
Reference in New Issue
Block a user