Skip to content

Commit

Permalink
Merge pull request #2389 from AsparagusEduardo/RHH/pr/FixZMove
Browse files Browse the repository at this point in the history
Fixed Z-Move not being cleared if Pokémon faints
  • Loading branch information
ghoulslash authored Oct 16, 2022
2 parents 068422b + dd2d610 commit e3f37ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/battle_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3303,6 +3303,11 @@ void FaintClearSetData(void)
}
}
}

// Clear Z-Move data
gBattleStruct->zmove.active = FALSE;
gBattleStruct->zmove.toBeUsed[gActiveBattler] = MOVE_NONE;
gBattleStruct->zmove.effect = EFFECT_HIT;
}

static void DoBattleIntro(void)
Expand Down

0 comments on commit e3f37ad

Please sign in to comment.