Fixed jumpifspecies

This commit is contained in:
LOuroboros 2021-10-17 10:51:22 -03:00
parent bfc66a21cc
commit dcea8e45ed
2 changed files with 4 additions and 4 deletions

View File

@ -1771,7 +1771,7 @@
.macro jumpifspecies battler:req, species:req, ptr:req
various \battler, VARIOUS_JUMP_IF_SPECIES
.byte \species
.2byte \species
.4byte \ptr
.endm

View File

@ -8427,10 +8427,10 @@ static void Cmd_various(void)
}
return;
case VARIOUS_JUMP_IF_SPECIES:
if (gBattleMons[gBattlerAttacker].species == gBattlescriptCurrInstr[3])
gBattlescriptCurrInstr = T1_READ_PTR(gBattlescriptCurrInstr + 4);
if (gBattleMons[gActiveBattler].species == T1_READ_16(gBattlescriptCurrInstr + 3))
gBattlescriptCurrInstr = T1_READ_PTR(gBattlescriptCurrInstr + 5);
else
gBattlescriptCurrInstr += 8;
gBattlescriptCurrInstr += 9;
return;
}