fix protect tests failing on upcoming (#3348)

This commit is contained in:
DizzyEggg 2023-09-26 20:54:01 +02:00 committed by GitHub
parent e0e49a9933
commit 0fed4e8912
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11848,7 +11848,7 @@ static u32 ChangeStatBuffs(s8 statValue, u32 statId, u32 flags, const u8 *BS_ptr
return STAT_CHANGE_DIDNT_WORK; return STAT_CHANGE_DIDNT_WORK;
} }
else if (gCurrentMove != MOVE_CURSE else if (gCurrentMove != MOVE_CURSE
&& notProtectAffected != TRUE && JumpIfMoveAffectedByProtect(0)) && notProtectAffected != TRUE && JumpIfMoveAffectedByProtect(gCurrentMove))
{ {
gBattlescriptCurrInstr = BattleScript_ButItFailed; gBattlescriptCurrInstr = BattleScript_ButItFailed;
return STAT_CHANGE_DIDNT_WORK; return STAT_CHANGE_DIDNT_WORK;