You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Disassemble the final English debug ROM
This commit is contained in:
@@ -3432,7 +3432,24 @@ DoEnemyDamage:
|
||||
ld [wBuffer4], a
|
||||
sbc b
|
||||
ld [wEnemyMonHP], a
|
||||
if DEF(_DEBUG)
|
||||
push af
|
||||
ld a, BANK(sSkipBattle)
|
||||
call OpenSRAM
|
||||
ld a, [sSkipBattle]
|
||||
call CloseSRAM
|
||||
or a
|
||||
; If [sSkipBattle] is nonzero, skip the "jr nc, .no_underflow" check,
|
||||
; so any attack deals maximum damage to the enemy.
|
||||
jr nz, .debug_skip
|
||||
pop af
|
||||
jr nc, .no_underflow
|
||||
push af
|
||||
.debug_skip
|
||||
pop af
|
||||
else
|
||||
jr nc, .no_underflow
|
||||
endc
|
||||
|
||||
ld a, [wBuffer4]
|
||||
ld [hli], a
|
||||
|
Reference in New Issue
Block a user