From 13c5d3a33cfb82ed7dffb97ff26ce237ad0d7fc3 Mon Sep 17 00:00:00 2001 From: DiSlord Date: Tue, 10 Feb 2009 23:58:32 +0300 Subject: [PATCH] Fix apply SPELLMOD_MULTIPLE_VALUE for SPELL_AURA_MANA_SHIELD drain Signed-off-by: DiSlord --- src/game/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 9e616e689..933c10d4b 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -1863,7 +1863,7 @@ void Unit::CalcAbsorbResist(Unit *pVictim,SpellSchoolMask schoolMask, DamageEffe currentAbsorb = RemainingDamage; float manaMultiplier = (*i)->GetSpellProto()->EffectMultipleValue[(*i)->GetEffIndex()]; - if(Player *modOwner = GetSpellModOwner()) + if(Player *modOwner = pVictim->GetSpellModOwner()) modOwner->ApplySpellMod((*i)->GetId(), SPELLMOD_MULTIPLE_VALUE, manaMultiplier); int32 maxAbsorb = int32(pVictim->GetPower(POWER_MANA) / manaMultiplier);