From 27827725224efdd008137c819a547a694eaef531 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Mon, 16 Mar 2026 22:24:13 -0400 Subject: [PATCH] Fixed possible EoL lance wall desync --- NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs index b553015d05..e7c56ef885 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs @@ -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; + } } }