Endo Hydra beams ignore tiles

This commit is contained in:
DominicKarma authored and Cameron Ewell committed 2021-10-14 20:29:21 -04:00
1 parent 414c491258
commit 2b408bbae4
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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)
+1
View File
@@ -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;
}