pokecrystal-board/engine/battle/move_effects/pursuit.asm
2018-06-25 12:07:35 -04:00

25 lines
303 B
NASM

BattleCommand_Pursuit:
; pursuit
; Double damage if the opponent is switching.
ld hl, wEnemyIsSwitching
ld a, [hBattleTurn]
and a
jr z, .ok
ld hl, wPlayerIsSwitching
.ok
ld a, [hl]
and a
ret z
ld hl, wCurDamage + 1
sla [hl]
dec hl
rl [hl]
ret nc
ld a, $ff
ld [hli], a
ld [hl], a
ret