From 1dca5998b542e8bd916f0fa19df5ca49bcb7e9c4 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sun, 10 May 2020 16:30:04 -0400 Subject: [PATCH] fixed plague jets not teleporting to the player --- Projectiles/Summon/TacticalPlagueEngineSummon.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Projectiles/Summon/TacticalPlagueEngineSummon.cs b/Projectiles/Summon/TacticalPlagueEngineSummon.cs index 62822d0f47..6c9cefda9f 100644 --- a/Projectiles/Summon/TacticalPlagueEngineSummon.cs +++ b/Projectiles/Summon/TacticalPlagueEngineSummon.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles.Summon public static Item FalseGun = null; public override void SetStaticDefaults() { - DisplayName.SetDefault("Tactical Plague Engine"); + DisplayName.SetDefault("Tactical Plague Jet"); Main.projFrames[projectile.type] = 3; ProjectileID.Sets.MinionSacrificable[projectile.type] = true; ProjectileID.Sets.MinionTargettingFeature[projectile.type] = true; @@ -128,6 +128,12 @@ namespace CalamityMod.Projectiles.Summon projectile.spriteDirection = -1; } projectile.rotation = projectile.rotation.AngleTowards(0f, 0.2f); + + if (distanceVector.Length() > 2700f) + { + projectile.Center = player.Center; + projectile.netUpdate = true; + } } else {