Endo Hydra beams ignore tiles
This commit is contained in:
1 parent
414c491258
commit
2b408bbae4
2 files changed
+2
-1
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user