blob: 847eaff02002f9a7da980c3382dfeed6b836ff0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
BattleCommand_BellyDrum:
; bellydrum
; This command is buggy because it raises the user's attack
; before checking that it has enough HP to use the move.
; Swap the order of these two blocks to fix.
call BattleCommand_AttackUp2
ld a, [wAttackMissed]
and a
jr nz, .failed
callfar GetHalfMaxHP
callfar CheckUserHasEnoughHP
jr nc, .failed
push bc
call AnimateCurrentMove
pop bc
callfar SubtractHPFromUser
call UpdateUserInParty
rept MAX_STAT_LEVEL - BASE_STAT_LEVEL - 1
call BattleCommand_AttackUp2
endr
ld hl, BellyDrumText
jp StdBattleTextbox
.failed
call AnimateFailedMove
jp PrintButItFailed
|