Skip to content

Commit

Permalink
Get rid of HM check for releasing Pokemon
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoomTen committed Sep 27, 2024
1 parent 1148ea3 commit dc266d5
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions engine/pc/bills_pc_ui.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2654,32 +2654,6 @@ BillsPC_CanReleaseMon:
ld a, 2
ret z

; Ensure that the mon doesn't know any HMs.
push de
push hl
push bc
ld hl, wBufferMonMoves
ld b, NUM_MOVES
.loop
ld a, [hli]
and a
jr z, .hm_check_done
push hl
push bc
call IsHMMove
pop bc
pop hl
ld a, 3
jr c, .hm_check_done
dec b
jr nz, .loop
xor a
.hm_check_done
pop bc
pop hl
; fallthrough
.pop_de_done
pop de
.done
and a
ret
Expand Down

0 comments on commit dc266d5

Please sign in to comment.