Vulnerability hex obeys the slowdown cooldown

This commit is contained in:
Dominic authored and Cameron Ewell committed 2021-08-18 17:32:42 -04:00
1 parent 8070ff9977
commit 00b23bd680
2 files changed
+3 -1

No files matched your search

+3
View File
@@ -1,3 +1,4 @@
using CalamityMod.NPCs;
using Terraria;
using Terraria.ModLoader;
@@ -22,6 +23,8 @@ namespace CalamityMod.Buffs.DamageOverTime
{
if (npc.Calamity().vulnerabilityHex < npc.buffTime[buffIndex])
npc.Calamity().vulnerabilityHex = npc.buffTime[buffIndex];
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().vulnerabilityHex;
npc.DelBuff(buffIndex);
buffIndex--;
}
-1
View File
@@ -984,7 +984,6 @@ namespace CalamityMod.NPCs
ApplyDPSDebuff(vulnerabilityHex, 6660, 666, ref npc.lifeRegen, ref damage);
ApplyDPSDebuff(bBlood, 50, 10, ref npc.lifeRegen, ref damage);
ApplyDPSDebuff(kamiFlu, 250, 25, ref npc.lifeRegen, ref damage);
ApplyDPSDebuff(vulnerabilityHex, 44440, 4444, ref npc.lifeRegen, ref damage);
ApplyDPSDebuff(sulphurPoison, 180, 36, ref npc.lifeRegen, ref damage);
ApplyDPSDebuff(sagePoisonTime, 90, npc.Calamity().sagePoisonDamage, ref npc.lifeRegen, ref damage);