Fix apply SPELLMOD_MULTIPLE_VALUE for SPELL_AURA_MANA_SHIELD drain
Signed-off-by: DiSlord <[email protected]> --HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -2085,7 +2085,7 @@ void Unit::CalcAbsorbResist(Unit *pVictim,SpellSchoolMask schoolMask, DamageEffe
|
|||||||
currentAbsorb = RemainingDamage;
|
currentAbsorb = RemainingDamage;
|
||||||
|
|
||||||
float manaMultiplier = (*i)->GetSpellProto()->EffectMultipleValue[(*i)->GetEffIndex()];
|
float manaMultiplier = (*i)->GetSpellProto()->EffectMultipleValue[(*i)->GetEffIndex()];
|
||||||
if(Player *modOwner = GetSpellModOwner())
|
if(Player *modOwner = pVictim->GetSpellModOwner())
|
||||||
modOwner->ApplySpellMod((*i)->GetId(), SPELLMOD_MULTIPLE_VALUE, manaMultiplier);
|
modOwner->ApplySpellMod((*i)->GetId(), SPELLMOD_MULTIPLE_VALUE, manaMultiplier);
|
||||||
|
|
||||||
int32 maxAbsorb = int32(pVictim->GetPower(POWER_MANA) / manaMultiplier);
|
int32 maxAbsorb = int32(pVictim->GetPower(POWER_MANA) / manaMultiplier);
|
||||||
|
|||||||
Reference in New Issue
Block a user