From 9d33c8a18b72530de611f8e302273ff77caaa426 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Mon, 12 Sep 2022 21:34:18 -0400 Subject: [PATCH] possibly fixed Levi not counting as dead if you kill Levi first --- NPCs/Leviathan/Anahita.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NPCs/Leviathan/Anahita.cs b/NPCs/Leviathan/Anahita.cs index e5a8da8b25..4dabce363c 100644 --- a/NPCs/Leviathan/Anahita.cs +++ b/NPCs/Leviathan/Anahita.cs @@ -847,6 +847,12 @@ namespace CalamityMod.NPCs.Leviathan potionType = ItemID.GreaterHealingPotion; } + public override void OnKill() + { + if (Leviathan.LastAnLStanding()) + Leviathan.RealOnKill(NPC); + } + public override void ModifyNPCLoot(NPCLoot npcLoot) { Leviathan.DefineAnahitaLeviathanLoot(npcLoot);