1 - Providence healing stars no longer heal you while you have immunity frames.

This commit is contained in:
Andrew Marheine committed 2022-01-10 21:30:18 -06:00
1 parent 5fc05c181a
commit 6fa297d8b5
1 file changed
+1 -3
+1 -3
View File
@@ -38,8 +38,6 @@ namespace CalamityMod.Projectiles.Boss
projectile.timeLeft = 160;
}
bool expertMode = Main.expertMode;
if (projectile.velocity.Length() < 16f)
projectile.velocity *= 1.01f;
@@ -49,7 +47,7 @@ namespace CalamityMod.Projectiles.Boss
return;
float playerDist = Vector2.Distance(player.Center, projectile.Center);
if (playerDist < 50f && !player.dead && projectile.position.X < player.position.X + player.width && projectile.position.X + projectile.width > player.position.X && projectile.position.Y < player.position.Y + player.height && projectile.position.Y + projectile.height > player.position.Y)
if (!player.immune && playerDist < 50f && !player.dead && projectile.position.X < player.position.X + player.width && projectile.position.X + projectile.width > player.position.X && projectile.position.Y < player.position.Y + player.height && projectile.position.Y + projectile.height > player.position.Y)
{
int healAmt = (int)projectile.ai[1];
player.HealEffect(healAmt, false);