mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
40 lines
423 B
NASM
40 lines
423 B
NASM
|
BattleCommand_TripleKick: ; 346b2
|
||
|
; triplekick
|
||
|
|
||
|
ld a, [wKickCounter]
|
||
|
ld b, a
|
||
|
inc b
|
||
|
ld hl, CurDamage + 1
|
||
|
ld a, [hld]
|
||
|
ld e, a
|
||
|
ld a, [hli]
|
||
|
ld d, a
|
||
|
.next_kick
|
||
|
dec b
|
||
|
ret z
|
||
|
ld a, [hl]
|
||
|
add e
|
||
|
ld [hld], a
|
||
|
ld a, [hl]
|
||
|
adc d
|
||
|
ld [hli], a
|
||
|
|
||
|
; No overflow.
|
||
|
jr nc, .next_kick
|
||
|
ld a, $ff
|
||
|
ld [hld], a
|
||
|
ld [hl], a
|
||
|
ret
|
||
|
|
||
|
; 346cd
|
||
|
|
||
|
|
||
|
BattleCommand_KickCounter: ; 346cd
|
||
|
; kickcounter
|
||
|
|
||
|
ld hl, wKickCounter
|
||
|
inc [hl]
|
||
|
ret
|
||
|
|
||
|
; 346d2
|