Fixed Vent steam applying Burning even if you're immune to Burning

This commit is contained in:
CongratsIsTrash authored and Cameron Ewell committed 2026-05-23 18:14:20 -04:00
1 parent 2d11f1085f
commit 790710d333
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -42,7 +42,9 @@ namespace CalamityMod.Projectiles.Environment
public override void OnHitPlayer(Player target, Player.HurtInfo info)
{
if (info.Damage <= 0)
// CIT 23MAY2026: Vanilla's logic for granting "Burning immunity" is incredibly stupid because Player.fireWalk actually just prevents running hot tile touch code.
// Thus we must add a manual check for Player.fireWalk here too.
if (info.Damage <= 0 || target.fireWalk)
return;
target.AddBuff(BuffID.Burning, 180);
+3 -1
View File
@@ -42,7 +42,9 @@ namespace CalamityMod.Projectiles.Environment
public override void OnHitPlayer(Player target, Player.HurtInfo info)
{
if (info.Damage <= 0)
// CIT 23MAY2026: Vanilla's logic for granting "Burning immunity" is incredibly stupid because Player.fireWalk actually just prevents running hot tile touch code.
// Thus we must add a manual check for Player.fireWalk here too.
if (info.Damage <= 0 || target.fireWalk)
return;
target.AddBuff(BuffID.Burning, 180);