Jump to content

[fix] unstable affliction dispel dmg


Recommended Posts

Just a small fix: The dmg of the dispel trigger should use the basevalue, not the modified one (new splitted damge calc system...).

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 3cc6fe0..d057dde 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -4288,7 +4288,9 @@ void Unit::RemoveSingleAuraDueToSpellByDispel(uint32 spellId, uint64 casterGUID,
        if (Aura* dotAura = GetAura(SPELL_AURA_PERIODIC_DAMAGE,SPELLFAMILY_WARLOCK,UI64LIT(0x010000000000),0x00000000,casterGUID))
-            int32 damage = dotAura->GetModifier()->m_amount*9;
+            // use clean value for initial damage
+            int32 damage = dotAura->GetSpellProto()->CalculateSimpleValue(EFFECT_INDEX_0);
+            damage *= 9;

            // Remove spell auras from stack
            RemoveSingleSpellAurasByCasterSpell(spellId, casterGUID, AURA_REMOVE_BY_DISPEL);

Link to comment
Share on other sites

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use