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:
hondacrx
2023-01-24 23:10:42 -05:00
parent 06c6c8afc7
commit c2ab67c6d2
+6
View File
@@ -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)
{