diff options
| author | megamage <none@none> | 2009-02-11 11:52:00 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-02-11 11:52:00 -0600 |
| commit | 7d8c08173243522cb642a096c847251a69520072 (patch) | |
| tree | 97751ada5dc672e34ccb1aa187e67b0ebf52d0cb /src | |
| parent | 848af429189fe20fef67cbb09295c3ecd5b9fae6 (diff) | |
Fix apply SPELLMOD_MULTIPLE_VALUE for SPELL_AURA_MANA_SHIELD drain
Signed-off-by: DiSlord <dislord@nomail.com>
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index b74eec24ae7..d4c331db57a 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -2085,7 +2085,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); |
