1 - Split Crimulan and Ebonian Slime Gods only teleport in Rev+.

This commit is contained in:
mountaindrew10 committed 2022-08-16 13:51:29 -05:00
1 parent 14ab270d16
commit d44d85fa2f
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -214,7 +214,8 @@ namespace CalamityMod.NPCs.SlimeGod
}
// Get ready to teleport by increasing ai[3]
if (NPC.ai[3] < teleportGateValue)
// This only occurs in Rev and Death for the split Slime Gods
if (NPC.ai[3] < teleportGateValue && revenge)
{
if (!Collision.CanHitLine(NPC.Center, 0, 0, player.Center, 0, 0) || Math.Abs(NPC.Top.Y - player.Bottom.Y) > 320f)
NPC.ai[3] += death ? 3f : 2f;
+2 -1
View File
@@ -210,7 +210,8 @@ namespace CalamityMod.NPCs.SlimeGod
}
// Get ready to teleport by increasing ai[3]
if (NPC.ai[3] < teleportGateValue)
// This only occurs in Rev and Death for the split Slime Gods
if (NPC.ai[3] < teleportGateValue && revenge)
{
if (!Collision.CanHitLine(NPC.Center, 0, 0, player.Center, 0, 0) || Math.Abs(NPC.Top.Y - player.Bottom.Y) > 320f)
NPC.ai[3] += death ? 3f : 2f;