This should fix Savage Defense related crashes

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-07-11 20:30:53 +02:00
parent 63179eb772
commit aebbdcebc2

View File

@@ -1801,9 +1801,8 @@ void Unit::CalcAbsorbResist(Unit *pVictim, SpellSchoolMask schoolMask, DamageEff
if (RemainingDamage < currentAbsorb)
currentAbsorb = RemainingDamage;
// don't use up the aura if we don't absorb anything
if (currentAbsorb > 0)
(*i)->GetBase()->DropCharge();
(*i)->SetAmount(0); // guarantee removal
existExpired = true; // maybe hacky but not crashy
RemainingDamage -= currentAbsorb;
continue;