Core/Auras: Implemented ChangeSpec, ChangeTalent and ChangeGlyph interrupt flags

Port From (https://github.com/TrinityCore/TrinityCore/commit/05037bd936756b8ae553d17fd920ad8316f27487)
This commit is contained in:
hondacrx
2022-01-01 17:13:41 -05:00
parent af0979903c
commit a2dcceb4f2
3 changed files with 10 additions and 3 deletions
@@ -79,6 +79,9 @@ namespace Game.Entities
else
GetTalentMap(spec)[talent.Id] = learning ? PlayerSpellState.New : PlayerSpellState.Unchanged;
if (learning)
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.ChangeTalent);
return true;
}
@@ -273,6 +276,8 @@ namespace Game.Entities
ExitVehicle();
RemoveAllControlled();
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.ChangeSpec);
// remove single target auras at other targets
var scAuras = GetSingleCastAuras();
foreach (var aura in scAuras)