fix goldstar damage class applying to other items

This commit is contained in:
scawful
2024-06-04 22:11:49 -04:00
parent 5f550c330b
commit cdb748f413

View File

@@ -1027,10 +1027,16 @@ MaybeUploadBirdGraphicsToOam:
ApplyGoldstarDamageClass:
{
; If the goldstar is active swap in the damage class
LDA GoldstarOrHookshot : CMP #$02 : BNE .return
LDA #$03
PHA
LDA $0202 : CMP.b #$03 : BNE .return
; If the goldstar is active swap in the damage class
LDA GoldstarOrHookshot : CMP #$02 : BNE .return
PLA
LDA #$03
JMP .apply
.return
PLA
.apply
JSL $06ED25 ; .apply
RTL
}