From b9d3e7623b369d0d55f3a1a7efbe8e9ddf34feb7 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 5 Nov 2017 15:46:16 -0500 Subject: [PATCH] cleanup single target auras on spec switch --- Source/Game/Entities/Player/Player.Talents.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Game/Entities/Player/Player.Talents.cs b/Source/Game/Entities/Player/Player.Talents.cs index 82cf37977..7d6119acd 100644 --- a/Source/Game/Entities/Player/Player.Talents.cs +++ b/Source/Game/Entities/Player/Player.Talents.cs @@ -271,6 +271,14 @@ namespace Game.Entities ExitVehicle(); RemoveAllControlled(); + // remove single target auras at other targets + var scAuras = GetSingleCastAuras(); + foreach (var aura in scAuras) + { + if (aura.GetUnitOwner() != this) + aura.Remove(); + } + // Let client clear his current Actions SendActionButtons(2); foreach (var talentInfo in CliDB.TalentStorage.Values)