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

@@ -401,7 +401,7 @@ PokeBallEffect:
xor a
ldh [hBattleTurn], a
ld [wThrownBallWobbleCount], a
ld [wNumHits], a
ld [wBattleAfterAnim], a
predef PlayBattleAnim
ld a, [wWildMon]
@@ -2601,7 +2601,7 @@ UseBallInTrainerBattle:
xor a
ld [wBattleAnimParam], a
ldh [hBattleTurn], a
ld [wNumHits], a
ld [wBattleAfterAnim], a
predef PlayBattleAnim
ld hl, BallBlockedText
call PrintText