Jump to content

[fix] Blessign of Light (mangos-one)


Guest FunkyBit

Recommended Posts

* What bug does the patch fix?

Currently "Blessing of Light" increases not the healing taken by the player who has this buff.

It wrongly increases the healing done by a paladin that buffs this spell onto himself.

It was wronly taken the AuraList of the caster of the healing spell instead of the AuraList of the target.

* For which repository revision was the patch created?

MaNGOS-One, s1434 (up2date)

* Who has been writing this patch?

me

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 43b396a..44f5f08 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -6528,7 +6528,7 @@ uint32 Unit::SpellHealingBonusTaken(Unit *pCaster, SpellEntry const *spellProto,
    // Blessing of Light dummy effects healing taken from Holy Light and Flash of Light
    if (spellProto->SpellFamilyName == SPELLFAMILY_PALADIN && (spellProto->SpellFamilyFlags & UI64LIT(0x00000000C0000000)))
    {
-        AuraList const& mDummyAuras = pCaster->GetAurasByType(SPELL_AURA_DUMMY);
+        AuraList const& mDummyAuras = GetAurasByType(SPELL_AURA_DUMMY);
        for(AuraList::const_iterator i = mDummyAuras.begin();i != mDummyAuras.end(); ++i)
        {
            if((*i)->GetSpellProto()->SpellVisual == 9180)

Link to comment
Share on other sites

  • 3 weeks later...
×
×
  • 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