Fixed jumpifspecies
This commit is contained in:
parent
bfc66a21cc
commit
dcea8e45ed
2 changed files with 4 additions and 4 deletions
|
@ -1771,7 +1771,7 @@
|
||||||
|
|
||||||
.macro jumpifspecies battler:req, species:req, ptr:req
|
.macro jumpifspecies battler:req, species:req, ptr:req
|
||||||
various \battler, VARIOUS_JUMP_IF_SPECIES
|
various \battler, VARIOUS_JUMP_IF_SPECIES
|
||||||
.byte \species
|
.2byte \species
|
||||||
.4byte \ptr
|
.4byte \ptr
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
|
|
|
@ -8427,10 +8427,10 @@ static void Cmd_various(void)
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case VARIOUS_JUMP_IF_SPECIES:
|
case VARIOUS_JUMP_IF_SPECIES:
|
||||||
if (gBattleMons[gBattlerAttacker].species == gBattlescriptCurrInstr[3])
|
if (gBattleMons[gActiveBattler].species == T1_READ_16(gBattlescriptCurrInstr + 3))
|
||||||
gBattlescriptCurrInstr = T1_READ_PTR(gBattlescriptCurrInstr + 4);
|
gBattlescriptCurrInstr = T1_READ_PTR(gBattlescriptCurrInstr + 5);
|
||||||
else
|
else
|
||||||
gBattlescriptCurrInstr += 8;
|
gBattlescriptCurrInstr += 9;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue