max move effects don't apply if the move didn't land
This commit is contained in:
parent
93d8efd51f
commit
9ef7717cd8
1 changed files with 5 additions and 0 deletions
|
@ -159,6 +159,11 @@ u16 SetMaxMoveEffect(u16 move)
|
|||
{
|
||||
u16 effect = 0;
|
||||
u8 maxEffect = gBattleMoves[move].argument;
|
||||
|
||||
// Don't continue if the move didn't land.
|
||||
if (gMoveResultFlags & MOVE_RESULT_NO_EFFECT)
|
||||
return effect;
|
||||
|
||||
switch (maxEffect)
|
||||
{
|
||||
case MAX_EFFECT_RAISE_TEAM_ATTACK:
|
||||
|
|
Loading…
Reference in a new issue