Core/Auras: Fully remove auras that had all of their effect suppressed with immunity
Port From (https://github.com/TrinityCore/TrinityCore/commit/8568b08350b954afb6603bf2c64897493230f2b1)
This commit is contained in:
@@ -2949,7 +2949,13 @@ namespace Game.Entities
|
||||
}, removeMode);
|
||||
|
||||
foreach (Aura aura in aurasToUpdateTargets)
|
||||
{
|
||||
aura.UpdateTargetMap(aura.GetCaster());
|
||||
|
||||
// Fully remove the aura if all effects were removed
|
||||
if (!aura.IsPassive() && aura.GetOwner() == this && aura.GetApplicationOfTarget(GetGUID()) == null)
|
||||
aura.Remove(removeMode);
|
||||
}
|
||||
}
|
||||
public void RemoveAurasDueToSpellBySteal(uint spellId, ObjectGuid casterGUID, WorldObject stealer, int stolenCharges = 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user