Core/Auras: Fully remove auras that had all of their effect suppressed with immunity

This commit is contained in:
Shauren authored and Ovahlord committed 2023-01-19 19:48:46 +01:00
1 parent f97d336d82
commit 674bba1cae
1 file changed
+6
+6
View File
@@ -3891,7 +3891,13 @@ void Unit::RemoveAurasWithMechanic(uint32 mechanicMaskToRemove, AuraRemoveFlags
}, removeMode);
for (Aura* aura : aurasToUpdateTargets)
{
aura->UpdateTargetMap(aura->GetCaster());
// Fully remove the aura if all effects were removed
if (!aura->IsPassive() && aura->GetOwner() == this && !aura->GetApplicationOfTarget(GetGUID()))
aura->Remove(removeMode);
}
}
void Unit::RemoveAurasByShapeShift()