From dc266d5bae1549e2e184338e4ae23e870c3447c9 Mon Sep 17 00:00:00 2001 From: Zumi Daxuya Date: Fri, 27 Sep 2024 09:41:40 +0700 Subject: [PATCH] Get rid of HM check for releasing Pokemon --- engine/pc/bills_pc_ui.asm | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/engine/pc/bills_pc_ui.asm b/engine/pc/bills_pc_ui.asm index ce9e01a4b..695540c06 100644 --- a/engine/pc/bills_pc_ui.asm +++ b/engine/pc/bills_pc_ui.asm @@ -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