Core/Auras: Implemented ChangeSpec, ChangeTalent and ChangeGlyph interrupt flags
Port From (https://github.com/TrinityCore/TrinityCore/commit/05037bd936756b8ae553d17fd920ad8316f27487)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user