Core/Auras: Implemented ChangeSpec, ChangeTalent and ChangeGlyph interrupt flags
Port From (https://github.com/TrinityCore/TrinityCore/commit/05037bd936756b8ae553d17fd920ad8316f27487)
This commit is contained in:
@@ -3076,6 +3076,8 @@ namespace Game.Spells
|
||||
else if (glyphId != 0)
|
||||
glyphs.Add(glyphId);
|
||||
|
||||
player.RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.ChangeGlyph);
|
||||
|
||||
GlyphPropertiesRecord glyphProperties = CliDB.GlyphPropertiesStorage.LookupByKey(glyphId);
|
||||
if (glyphProperties != null)
|
||||
player.CastSpell(player, glyphProperties.SpellID, new CastSpellExtraArgs(TriggerCastFlags.FullMask).SetOriginalCastId(m_castId));
|
||||
|
||||
Reference in New Issue
Block a user