From 0fed4e8912e8f17c5c6e416360900e7a0a988d2c Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Tue, 26 Sep 2023 20:54:01 +0200 Subject: [PATCH] fix protect tests failing on upcoming (#3348) --- 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 8615a23d0f7d..164021555f72 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -11848,7 +11848,7 @@ static u32 ChangeStatBuffs(s8 statValue, u32 statId, u32 flags, const u8 *BS_ptr return STAT_CHANGE_DIDNT_WORK; } else if (gCurrentMove != MOVE_CURSE - && notProtectAffected != TRUE && JumpIfMoveAffectedByProtect(0)) + && notProtectAffected != TRUE && JumpIfMoveAffectedByProtect(gCurrentMove)) { gBattlescriptCurrInstr = BattleScript_ButItFailed; return STAT_CHANGE_DIDNT_WORK;