Skip to content

Commit c37c9d2

Browse files
committed
fix cyber elves being able to cut hp of two bosses in boss rush (fixes #3)
1 parent 7b6a506 commit c37c9d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

skip-funcs.asm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,13 +649,18 @@ reset_health_play_sound_effect:
649649
.pool
650650
@retain_hp_cutting_elf_on_skip:
651651
push {r4-r6}
652+
ldr r4,=#ADDR_STAGE_SCRIPT_ACTIVE
653+
ldrb r4,[r4]
654+
cmp r4,#0x0
655+
beq @@subr_end
652656
ldr r4,=#ADDR_FREE_AREA
653657
ldr r5,=#OFFSET_NEW_SAVED_HACKER_EFFECT
654658
add r4,r4,r5
655659
ldrb r5,[r4]
656660
mov r6,#0x2
657661
orr r5,r6
658662
strb r5,[r4]
663+
@@subr_end:
659664
mov r1,#0xFD
660665
mov r0,r1
661666
pop {r4-r6}

0 commit comments

Comments
 (0)