From ac600a1cef5f84ad130611227420353e507cb0ef 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 | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/engine/pc/bills_pc_ui.asm b/engine/pc/bills_pc_ui.asm index ce9e01a4b..79d93f96f 100644 --- a/engine/pc/bills_pc_ui.asm +++ b/engine/pc/bills_pc_ui.asm @@ -2654,32 +2654,7 @@ 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