Merge pull request #1595 from CalamityTeam/oiled-fix

Oiled Bugfix
This commit is contained in:
Doze-Zoze authored and GitHub committed 2026-08-07 16:42:37 -05:00
commit 70ec563a56
1 file changed
+18
+18
View File
@@ -289,6 +289,24 @@ namespace CalamityMod.DataStructures
/// </summary>
public static void OiledNPCMethod(NPC npc, int buffType, ref int buffIndex, ref int damage)
{
// Exclude Oiled itself from counting as an applicable debuff
bool valid = false;
for (int i = 0; i < npc.buffType.Length; i++)
{
int activeBuff = npc.buffType[i];
if (activeBuff > 0 && activeBuff != BuffID.Oiled)
{
var data = CalamityBuffSets.DebuffDataset[activeBuff];
if (data != null && data.HeatDebuffScaling > 0)
{
valid = true;
break;
}
}
}
if (!valid && !(npc.onFrostBurn || npc.onFrostBurn2 || npc.onFire || npc.onFire2 || npc.onFire3 || npc.shadowFlame))
return;
var cnpc = npc.Calamity();
double totalDPS = ApplyScalingToStatModifer(cnpc.ActiveHeatDebuffMultiplier, Oiled.HeatDebuffScaling).ApplyTo(Oiled.EnemyLostRegen);
if (totalDPS <= 0)