Fixed possible EoL lance wall desync

This commit is contained in:
CongratsIsTrash authored and Cameron Ewell committed 2026-03-18 01:03:03 -04:00
1 parent 494e921659
commit 2782772522
1 file changed
+6 -3
@@ -848,10 +848,13 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
}
// Chance to stop using the lance walls and switch to a different attack after 3 lance walls are used.
if (Main.rand.NextBool(5 - ((int)calamityGlobalNPC.newAI[1] - 2)) && calamityGlobalNPC.newAI[1] >= 2f)
if (Main.netMode != NetmodeID.MultiplayerClient)
{
NPC.ai[1] = lanceWallPhaseTime;
NPC.netUpdate = true;
if (Main.rand.NextBool(5 - ((int)calamityGlobalNPC.newAI[1] - 2)) && calamityGlobalNPC.newAI[1] >= 2f)
{
NPC.ai[1] = lanceWallPhaseTime;
NPC.netUpdate = true;
}
}
}