From 2b408bbae43e93700a00add83e98d99d4560f330 Mon Sep 17 00:00:00 2001 From: DominicKarma <51094361+DominicKarma@users.noreply.github.com> Date: Tue, 12 Oct 2021 23:23:36 -0500 Subject: [PATCH] Endo Hydra beams ignore tiles --- Projectiles/Summon/EndoHydraHead.cs | 2 +- Projectiles/Summon/EndoRay.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Projectiles/Summon/EndoHydraHead.cs b/Projectiles/Summon/EndoHydraHead.cs index 6352c75f0e..84a73682f6 100644 --- a/Projectiles/Summon/EndoHydraHead.cs +++ b/Projectiles/Summon/EndoHydraHead.cs @@ -115,7 +115,7 @@ namespace CalamityMod.Projectiles.Summon if (body.ai[0] >= 0 && body.ai[0] < Main.npc.Length) { NPC target = Main.npc[(int)body.ai[0]]; - bool targetAliveAndInLineOfSight = target.active && projectile.Distance(target.Center) < EndoHydraBody.DistanceToCheck && Collision.CanHit(projectile.Center, 1, 1, target.Center, 1, 1); + bool targetAliveAndInLineOfSight = target.active && projectile.Distance(target.Center) < EndoHydraBody.DistanceToCheck; if (targetAliveAndInLineOfSight && target.CanBeChasedBy() && Main.myPlayer == projectile.owner) { if (Time % 40f == 24f) diff --git a/Projectiles/Summon/EndoRay.cs b/Projectiles/Summon/EndoRay.cs index 1ad285a510..b21267c6e3 100644 --- a/Projectiles/Summon/EndoRay.cs +++ b/Projectiles/Summon/EndoRay.cs @@ -24,6 +24,7 @@ namespace CalamityMod.Projectiles.Summon projectile.extraUpdates = 100; projectile.timeLeft = 265; projectile.coldDamage = true; + projectile.tileCollide = false; projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 100; }