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
+2
View File
@@ -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));