Update battle_dynamax.c

IsMoveBlockedByDynamax now simply returns the move's "doesntAffectDynamax" flag.
This commit is contained in:
WillKolada 2024-05-07 17:25:18 -05:00 committed by GitHub
parent bc42e7bccf
commit 29dbdce850
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -241,13 +241,7 @@ bool32 IsMoveBlockedByMaxGuard(u16 move)
bool32 IsMoveBlockedByDynamax(u16 move)
{
// TODO: Certain moves are banned in raids.
switch (gMovesInfo[move].effect)
{
case EFFECT_HEAT_CRASH:
case EFFECT_LOW_KICK:
return TRUE;
}
return FALSE;
return gMovesInfo[move].doesntAffectDynamax;
}
// Returns whether a move should be converted into a Max Move.