From 0a84072ad28ecc310ad4edce6652a347f46b3c0c Mon Sep 17 00:00:00 2001 From: Eduardo Quezada Date: Mon, 9 Oct 2023 20:17:30 -0300 Subject: [PATCH] Fixed 2 protection tests --- src/battle_script_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index f1d8f3a0fd..46023c5475 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -1773,7 +1773,7 @@ static void Cmd_accuracycheck(void) gBattlescriptCurrInstr = cmd->nextInstr; else if (gStatuses3[gBattlerTarget] & (STATUS3_SEMI_INVULNERABLE)) gBattlescriptCurrInstr = cmd->failInstr; - else if (!JumpIfMoveAffectedByProtect(0)) + else if (!JumpIfMoveAffectedByProtect(gCurrentMove)) gBattlescriptCurrInstr = cmd->nextInstr; } else if (gSpecialStatuses[gBattlerAttacker].parentalBondState == PARENTAL_BOND_2ND_HIT