mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
This should fix Savage Defense related crashes
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user