Core/Auras: Fixed damage not being lowered by split damage auras

Closes #203
This commit is contained in:
Shauren
2011-01-31 12:17:44 +01:00
parent 5004f409d8
commit 089fd71877
+2 -2
View File
@@ -1770,7 +1770,7 @@ void Unit::CalcAbsorbResist(Unit *pVictim, SpellSchoolMask schoolMask, DamageEff
// absorb must be smaller than the damage itself // absorb must be smaller than the damage itself
splitDamage = RoundToInterval(splitDamage, 0, int32(dmgInfo.GetDamage())); splitDamage = RoundToInterval(splitDamage, 0, int32(dmgInfo.GetDamage()));
dmgInfo.ModifyDamage(-splitDamage); dmgInfo.AbsorbDamage(splitDamage);
uint32 splitted = splitDamage; uint32 splitted = splitDamage;
uint32 splitted_absorb = 0; uint32 splitted_absorb = 0;
@@ -1804,7 +1804,7 @@ void Unit::CalcAbsorbResist(Unit *pVictim, SpellSchoolMask schoolMask, DamageEff
// absorb must be smaller than the damage itself // absorb must be smaller than the damage itself
splitDamage = RoundToInterval(splitDamage, 0, int32(dmgInfo.GetDamage())); splitDamage = RoundToInterval(splitDamage, 0, int32(dmgInfo.GetDamage()));
dmgInfo.ModifyDamage(-splitDamage); dmgInfo.AbsorbDamage(splitDamage);
uint32 splitted = splitDamage; uint32 splitted = splitDamage;
uint32 split_absorb = 0; uint32 split_absorb = 0;