Anahita no longer displays buff visuals while invisible during Levi phase

This commit is contained in:
CongratsIsTrash committed 2025-07-03 17:34:31 -04:00
1 parent 06fee38ff8
commit 43932154a4
1 file changed
+2 -4
+2 -4
View File
@@ -139,9 +139,6 @@ namespace CalamityMod.NPCs.Leviathan
if (HasBegunSummoningLeviathan && CalamityGlobalNPC.LeviAndAna == -1)
CalamityGlobalNPC.LeviAndAna = NPC.whoAmI;
// Set to false so she doesn't do it constantly
NPC.Calamity().canBreakPlayerDefense = false;
// Light
Lighting.AddLight((int)(NPC.Center.X / 16f), (int)(NPC.Center.Y / 16f), 0f, 0.5f, 0.3f);
@@ -313,6 +310,7 @@ namespace CalamityMod.NPCs.Leviathan
NPC.dontTakeDamage = true;
}
NPC.canDisplayBuffs = true;
// Hover near the target, invisible if the Leviathan is present and not sufficiently injured.
if ((phase3 || death) && WaitingForLeviathan && !Main.zenithWorld)
{
@@ -340,6 +338,7 @@ namespace CalamityMod.NPCs.Leviathan
}
NPC.dontTakeDamage = true;
NPC.canDisplayBuffs = false;
if (NPC.ai[0] != -1f)
{
@@ -848,7 +847,6 @@ namespace CalamityMod.NPCs.Leviathan
// Charge
else if (NPC.ai[0] == 4f)
{
NPC.Calamity().canBreakPlayerDefense = true;
NPC.damage = (int)Math.Round(NPC.defDamage * 1.5);
if (CalamityWorld.LegendaryMode && NPC.ai[1] % 5f == 0f)