From 412d00ebf0c8fb18f89938ff772e78efb7465ff1 Mon Sep 17 00:00:00 2001 From: Doze-Zoze Date: Fri, 12 Jun 2026 18:42:32 -0500 Subject: [PATCH] Debuff Fix - Fixes crossmod debuff calculations being off - fixes shadowflame always doing 15 dps less than intended. Nerfed to 20 dps to compensate. (slightly worse on fire weak enemies / with amplifiers than before, better on fire resists / de-amplifiers than before) --- DataStructures/DebuffData.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/DataStructures/DebuffData.cs b/DataStructures/DebuffData.cs index 82a4e5194a..f90196804d 100644 --- a/DataStructures/DebuffData.cs +++ b/DataStructures/DebuffData.cs @@ -359,8 +359,8 @@ namespace CalamityMod.DataStructures }; public static DebuffData Shadowflame = new DebuffData() { - EnemyLostRegen = 60, - EnemyVanillaRegenToCancelOut = 60, + EnemyLostRegen = 40, + EnemyVanillaRegenToCancelOut = 30, HeatDebuffScaling = 1 }; public static DebuffData Daybroken = new DebuffData() @@ -436,13 +436,12 @@ namespace CalamityMod.DataStructures if (debuffData == Oiled) { - bool hasVanillaOil = npc.onFrostBurn || npc.onFrostBurn2 || npc.onFire || npc.onFire2 || npc.onFire3 || npc.shadowFlame; - if (hasVanillaOil) - npc.lifeRegen -= Oiled.EnemyVanillaRegenToCancelOut; Oiled.NPCLifeRegenMethod(npc, BuffID.Oiled, ref index, ref dmg); } - - debuffData.NPCLifeRegenMethod(npc, type, ref index, ref dmg); + else { + debuffData.NPCLifeRegenMethod(npc, type, ref index, ref dmg); + npc.lifeRegen -= debuffData.EnemyVanillaRegenToCancelOut; //ensure vanilla dmg values aren't counted + } int done = npc.lifeRegen; npc.lifeRegen = oldRegen;