Core/Spells: Fixed applying glyphs without exclusive category

Port From (https://github.com/TrinityCore/TrinityCore/commit/20ac55ffef0576fba8fb6fa166fcdcf56d30ea3b)
This commit is contained in:
Hondacrx
2025-08-18 09:49:21 -04:00
parent ddfc5c7484
commit 1c693d245f
+4 -1
View File
@@ -5523,8 +5523,11 @@ namespace Game.Spells
if (activeGlyphId == glyphId)
return SpellCastResult.UniqueGlyph;
if (CliDB.GlyphPropertiesStorage.LookupByKey(activeGlyphId).GlyphExclusiveCategoryID == glyphProperties.GlyphExclusiveCategoryID)
if (glyphProperties.GlyphExclusiveCategoryID != 0 && CliDB.GlyphPropertiesStorage.LookupByKey(activeGlyphId).GlyphExclusiveCategoryID == glyphProperties.GlyphExclusiveCategoryID)
{
param1 = glyphProperties.GlyphExclusiveCategoryID;
return SpellCastResult.GlyphExclusiveCategory;
}
}
}
break;