mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/Player: cleanup single target auras on spec switch
Closes #806
(cherry picked from commit 9f72f4ceb2)
This commit is contained in:
@@ -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();*/
|
||||
|
||||
Reference in New Issue
Block a user