Skip to content

Commit

Permalink
fix protect tests failing on upcoming (#3348)
Browse files Browse the repository at this point in the history
  • Loading branch information
DizzyEggg authored Sep 26, 2023
1 parent e0e49a9 commit 0fed4e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/battle_script_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0fed4e8

Please sign in to comment.