1 - DoG sets flight time to max during laser wall phase.

This commit is contained in:
mountaindrew10 committed 2022-03-13 14:37:26 -06:00
1 parent 23e88f44b7
commit 702f84eabd
1 file changed
+13
+13
View File
@@ -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)