From 1c08111c59eedb8ea61a7c3945dff7d402107e48 Mon Sep 17 00:00:00 2001 From: scawful Date: Fri, 7 Jun 2024 23:12:42 -0400 Subject: [PATCH] update Sprite_Wolfos_CheckIfDefeated --- Sprites/Bosses/wolfos.asm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Sprites/Bosses/wolfos.asm b/Sprites/Bosses/wolfos.asm index 7df4eb3..00d1868 100644 --- a/Sprites/Bosses/wolfos.asm +++ b/Sprites/Bosses/wolfos.asm @@ -38,10 +38,10 @@ Sprite_Wolfos_Long: PHB : PHK : PLB JSR Sprite_Wolfos_Draw - JSR Sprite_Wolfos_CheckIfDefeated JSL Sprite_CheckActive ; Check if game is not paused BCC .SpriteIsNotActive ; Skip Main code is sprite is innactive + JSR Sprite_Wolfos_CheckIfDefeated JSR Sprite_Wolfos_Main ; Call the main sprite code .SpriteIsNotActive @@ -72,9 +72,10 @@ Sprite_Wolfos_Prep: Sprite_Wolfos_CheckIfDefeated: { - LDA SprHealth, X : BNE .not_defeated + LDA.w SprHealth, X : BNE .not_defeated LDA.b #$06 : STA SprAction, X ; Set to defeated - LDA.b #$01 : STA SprHealth, X ; Refill the health of the sprite + LDA.b #$09 : STA SprState, X + LDA.b #$40 : STA SprHealth, X ; Refill the health of the sprite RTS .not_defeated RTS