Jump to content

[fix]resilience with leech auras


Auntie Mangos

Recommended Posts

What bug does the patch fix? What features does the patch add?

fixes applying resilience to a non-crit leech auras

For which repository revision was the patch created?

9657

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

http://getmangos.eu/community/showthread.php?13318-[bug]-Resilience-and-Devouring-plague&p=109770#post109770

Who has been writing this patch? Please include either forum user names or email addresses.

me

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 6d74fad..50c4bf3 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -7231,6 +7231,11 @@ void Aura::PeriodicTick()
                pdamage -= m_target->GetSpellCritDamageReduction(pdamage);
            }

+            // only from players
+            // FIXME: need use SpellDamageBonus instead?
+            if (IS_PLAYER_GUID(m_caster_guid))
+                pdamage -= m_target->GetSpellDamageReduction(pdamage);
+
            pCaster->CalcAbsorbResist(m_target, GetSpellSchoolMask(GetSpellProto()), DOT, pdamage, &absorb, &resist, !(GetSpellProto()->AttributesEx2 & SPELL_ATTR_EX2_CANT_REFLECTED));

            if(m_target->GetHealth() < pdamage)

Link to comment
Share on other sites

  • 40 years later...
Guest
This topic is now closed to further replies.
×
×
  • 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