Fixed Permafrost's Concoction causing errors

This commit is contained in:
CongratsIsTrash committed 2025-12-23 11:39:25 -05:00
1 parent 84cfc08018
commit 8ea7e4d008
1 file changed
+1 -1
+1 -1
View File
@@ -352,7 +352,7 @@ namespace CalamityMod.CalPlayer
}
// Permafrost's Concoction increases life regen while afflicted with a fire debuff
if (permafrostsConcoction && Player.buffType.Any(l => BuffDatasets.DebuffDataset[l].HeatDebuffScaling > 0))
if (permafrostsConcoction && Player.buffType.Any(l => BuffDatasets.DebuffDataset[l] is not null && BuffDatasets.DebuffDataset[l].HeatDebuffScaling > 0))
{
if (Player.lifeRegenTime < 900)
Player.lifeRegenTime = 900;