Fix some StatUp-related labels

This commit is contained in:
mid-kid 2018-08-17 17:48:41 +02:00
parent 2e147d1128
commit 79cf90ab5e
3 changed files with 8 additions and 6 deletions

View File

@ -806,7 +806,7 @@ EnemyUsedXItem:
push bc
call PrintText_UsedItemOn
pop bc
farcall CheckIfStatCanBeRaised
farcall RaiseStat
jp AIUpdateHUD
; Parameter

View File

@ -4181,13 +4181,13 @@ BattleCommand_EvasionUp2:
BattleCommand_StatUp:
; statup
call CheckIfStatCanBeRaised
call RaiseStat
ld a, [wFailedMessage]
and a
ret nz
jp StatUpAnimation
jp MinimizeDropSub
CheckIfStatCanBeRaised:
RaiseStat:
ld a, b
ld [wLoweredStat], a
ld hl, wPlayerStatLevels
@ -4283,7 +4283,9 @@ CheckIfStatCanBeRaised:
ld [wFailedMessage], a
ret
StatUpAnimation:
MinimizeDropSub:
; Lower the substitute if we're minimizing
ld bc, wPlayerMinimized
ld hl, DropPlayerSub
ld a, [hBattleTurn]

View File

@ -2159,7 +2159,7 @@ XItemEffect:
ld [hBattleTurn], a
ld [wAttackMissed], a
ld [wEffectFailed], a
farcall CheckIfStatCanBeRaised
farcall RaiseStat
call WaitSFX
farcall BattleCommand_StatUpMessage