Pan-searing doesn't work while overheated

This commit is contained in:
CongratsIsTrash authored and Cameron Ewell committed 2025-06-17 11:34:12 -04:00
1 parent 7b1506af42
commit 835be15de8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -119,7 +119,7 @@ namespace CalamityMod.Projectiles.Ranged
}
// Pan-searing mechanic
public override bool? CanDamage() => BuiltHeat >= 120;
public override bool? CanDamage() => BuiltHeat >= 120 && Owner.Calamity().flareGunOverheat == 0;
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(BuffID.OnFire, 300);
@@ -158,7 +158,7 @@ namespace CalamityMod.Projectiles.Ranged
}
// Pan-searing mechanic
public override bool? CanDamage() => BuiltHeat >= 120;
public override bool? CanDamage() => BuiltHeat >= 120 && Owner.Calamity().flareGunOverheat == 0;
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(BuffID.OnFire3, 300);