Fix IS_MOVE_STATUS regression (#5848)

This commit is contained in:
Bassoonian 2024-12-21 16:27:35 +01:00 committed by GitHub
parent e175c5aca8
commit d16f6185f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2393,7 +2393,7 @@ bool32 HasDamagingMoveOfType(u32 battlerId, u32 type)
for (i = 0; i < MAX_MON_MOVES; i++)
{
if (moves[i] != MOVE_NONE && moves[i] != MOVE_UNAVAILABLE
&& !IS_MOVE_STATUS(moves[i]].type == type && gMovesInfo[moves[i]))
&& gMovesInfo[moves[i]].type == type && !IS_MOVE_STATUS(moves[i]))
return TRUE;
}