From 62f39c1226951bb579de262cc76bcd92cb5beb15 Mon Sep 17 00:00:00 2001 From: Memes Date: Wed, 24 Jan 2024 17:05:35 +0100 Subject: [PATCH] Fixed Ice Claspers not TPing if far enough. --- Projectiles/Summon/IceClasperMinion.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Projectiles/Summon/IceClasperMinion.cs b/Projectiles/Summon/IceClasperMinion.cs index bc18a45de9..db0fd7141c 100644 --- a/Projectiles/Summon/IceClasperMinion.cs +++ b/Projectiles/Summon/IceClasperMinion.cs @@ -77,17 +77,17 @@ namespace CalamityMod.Projectiles.Summon public void FollowState() { - // If the minion starts to get far, force the minion to go to you. - if (!Projectile.WithinRange(Owner.Center, AncientIceChunk.MaxDistanceFromOwner)) + // Teleport to the owner if sufficiently far away. + if (!Projectile.WithinRange(Owner.Center, 1200f)) { - Projectile.velocity = (Projectile.velocity + Projectile.SafeDirectionTo(Owner.Center)) * 0.9f; + Projectile.Center = Owner.Center; SyncVariables(); } - // Teleport to the owner if sufficiently far away. - else if (!Projectile.WithinRange(Owner.Center, 1200f)) + // If the minion starts to get far, force the minion to go to you. + else if (!Projectile.WithinRange(Owner.Center, AncientIceChunk.MaxDistanceFromOwner)) { - Projectile.Center = Owner.Center; + Projectile.velocity = (Projectile.velocity + Projectile.SafeDirectionTo(Owner.Center)) * 0.9f; SyncVariables(); }