Use offsets from ANIM_* constants for wBattleAfterAnim (formerly wNumHits) (#1184)

This commit is contained in:
Rangi
2025-05-31 15:07:56 -04:00
committed by GitHub
parent b035d9fb89
commit efceed1338
10 changed files with 60 additions and 69 deletions

View File

@@ -7,7 +7,7 @@ BattleCommand_Transform:
call CheckHiddenOpponent
jp nz, BattleEffect_ButItFailed
xor a
ld [wNumHits], a
ld [wBattleAfterAnim], a
ld [wFXAnimID + 1], a
ld a, $1
ld [wBattleAnimParam], a
@@ -125,7 +125,7 @@ BattleCommand_Transform:
call BattleCommand_RaiseSubNoAnim
.after_anim
xor a
ld [wNumHits], a
ld [wBattleAfterAnim], a
ld [wFXAnimID + 1], a
ld a, $2
ld [wBattleAnimParam], a