Core/Player: cleanup single target auras on spec switch

Closes #806

(cherry picked from commit 9f72f4ceb2)
This commit is contained in:
ariel-
2016-10-28 03:54:43 -03:00
committed by joschiwald
parent f895defe99
commit ceb7c04827

View File

@@ -26551,6 +26551,20 @@ void Player::ActivateTalentGroup(ChrSpecializationEntry const* spec)
UnsummonAllTotems();
ExitVehicle();
RemoveAllControlled();
// remove single target auras at other targets
AuraList& scAuras = GetSingleCastAuras();
for (AuraList::iterator iter = scAuras.begin(); iter != scAuras.end();)
{
Aura* aura = *iter;
if (aura->GetUnitOwner() != this)
{
aura->Remove();
iter = scAuras.begin();
}
else
++iter;
}
/*RemoveAllAurasOnDeath();
if (GetPet())
GetPet()->RemoveAllAurasOnDeath();*/