Core/Auras: Fully remove auras that had all of their effect suppressed with immunity
This commit is contained in:
1 parent
f97d336d82
commit
674bba1cae
1 file changed
+6
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user