From 2dfdedf82456f01174f4fea3c750fb08758649bb Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 23 Dec 2025 00:04:54 -0500 Subject: [PATCH] Toxic Heart only spawns pulses from actual enemies --- Projectiles/Typeless/PlaguePulse.cs | 2 +- Systems/Collections/CalamityNPCSets.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Projectiles/Typeless/PlaguePulse.cs b/Projectiles/Typeless/PlaguePulse.cs index 2a3594d6d2..fb430aa6e8 100644 --- a/Projectiles/Typeless/PlaguePulse.cs +++ b/Projectiles/Typeless/PlaguePulse.cs @@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Typeless Player player = Main.player[Projectile.owner]; target.AddBuff(ModContent.BuffType(), 420); - if ((target.life <= 0 && target.realLife == -1)) + if (target.life <= 0 && target.realLife == -1 && target.IsAnEnemy(false)) { player.Heal(10); Projectile.NewProjectile(Projectile.GetSource_FromThis(), target.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 0.9f), 0f, Projectile.owner, 0, Projectile.ai[1] + 1, 1); diff --git a/Systems/Collections/CalamityNPCSets.cs b/Systems/Collections/CalamityNPCSets.cs index 5b8dca1dd6..10209c6308 100644 --- a/Systems/Collections/CalamityNPCSets.cs +++ b/Systems/Collections/CalamityNPCSets.cs @@ -209,7 +209,8 @@ namespace CalamityMod.Systems.Collections public static bool[] DoCheckDeadRegardlessRealLife = Factory.CreateBoolSet(NPCType(), NPCType()); /// - /// If for an NPC type, Does not count specified NPC as Enemy + /// If for an NPC type, will not count this NPC as an enemy.
+ /// Defaults to . ///
public static bool[] DontCountAsEnemy = Factory.CreateBoolSet(NPCID.TargetDummy, NPCType());