Destroyer telegraph kills itself if the Probe is launched while the telegraph is active.

This commit is contained in:
mountaindrew10 committed 2024-05-04 01:31:18 -05:00
1 parent ebe24fb000
commit a869291ef6
1 file changed
+4
+4
View File
@@ -39,7 +39,11 @@ namespace CalamityMod.Particles
Rotation += MathHelper.ToRadians(8f) * (1f - pulseProgress) * RotationDirection;
if (NPCToFollow != null && NPCToFollow.active && !Main.tile[NPCToFollow.Center.ToSafeTileCoordinates()].IsTileSolid())
{
Position = NPCToFollow.Center;
if (NPCToFollow.ai[2] == 1f)
Kill();
}
else
Kill();
}