fix leaf guard ability pop up

This commit is contained in:
ghoulslash 2021-11-01 11:32:13 -04:00
parent 52d4d1cd34
commit 6357b21202

View File

@ -8992,9 +8992,14 @@ static void Cmd_various(void)
return;
case VARIOUS_JUMP_IF_LEAF_GUARD_PROTECTED:
if (IsLeafGuardProtected(gActiveBattler))
{
gBattlerAbility = gActiveBattler;
gBattlescriptCurrInstr = T1_READ_PTR(gBattlescriptCurrInstr + 3);
}
else
{
gBattlescriptCurrInstr += 7;
}
return;
}