From 702f84eabd3d31a67e3b23e70affce0da59b7eb5 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sun, 13 Mar 2022 14:37:26 -0600 Subject: [PATCH] 1 - DoG sets flight time to max during laser wall phase. --- NPCs/DevourerofGods/DevourerofGodsHead.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/NPCs/DevourerofGods/DevourerofGodsHead.cs b/NPCs/DevourerofGods/DevourerofGodsHead.cs index c13561469b..6781b9a93c 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead.cs @@ -776,6 +776,19 @@ namespace CalamityMod.NPCs.DevourerofGods } } + // Set flight time to max during laser walls + if (!phase6 && laserWallPhase == (int)LaserWallPhase.FireLaserWalls) + { + if (Main.netMode != NetmodeID.Server) + { + if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active && Vector2.Distance(Main.player[Main.myPlayer].Center, vector) < CalamityGlobalNPC.CatchUpDistance350Tiles) + { + if (Main.player[Main.myPlayer].wingTime < Main.player[Main.myPlayer].wingTimeMax) + Main.player[Main.myPlayer].wingTime = Main.player[Main.myPlayer].wingTimeMax; + } + } + } + float fallSpeed = malice ? 19.5f : death ? 17.75f : 16f; if (expertMode)