From c3b347f655a580c006230f222f248b54b6d6375c Mon Sep 17 00:00:00 2001 From: DominicKarma <51094361+DominicKarma@users.noreply.github.com> Date: Mon, 21 Jun 2021 04:28:48 +0200 Subject: [PATCH] npc.active anti-crash check --- UI/BossHealthBarManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/BossHealthBarManager.cs b/UI/BossHealthBarManager.cs index 5ac30a1d5f..5c5cdae84a 100644 --- a/UI/BossHealthBarManager.cs +++ b/UI/BossHealthBarManager.cs @@ -592,7 +592,7 @@ namespace CalamityMod.UI return; int currentLife = _npc.life; - bool enraged = _npc.Calamity().CurrentlyEnraged; + bool enraged = _npc.active && _npc.Calamity().CurrentlyEnraged; // Calculate current life based all types that are available and considered part of one boss if (_oneToMany)