Prevent infinite absorption (and spell damage from Incanter's Absorption) when Chaos Bolt hits Mana shield. Patch by johnholiver.
Fixes #7
This commit is contained in:
@@ -1731,7 +1731,7 @@ void Unit::CalcAbsorbResist(Unit *pVictim, SpellSchoolMask schoolMask, DamageEff
|
|||||||
int32 manaTaken = -pVictim->ModifyPower(POWER_MANA, -manaReduction);
|
int32 manaTaken = -pVictim->ModifyPower(POWER_MANA, -manaReduction);
|
||||||
|
|
||||||
// take case when mana has ended up into account
|
// take case when mana has ended up into account
|
||||||
currentAbsorb = int32(float(currentAbsorb)*(float(manaTaken) / float(manaReduction)));
|
currentAbsorb = currentAbsorb ? int32(float(currentAbsorb)*(float(manaTaken) / float(manaReduction))) : 0;
|
||||||
|
|
||||||
dmgInfo.AbsorbDamage(currentAbsorb);
|
dmgInfo.AbsorbDamage(currentAbsorb);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user