Core/Spells: Fixed applying glyphs without exclusive category
Port From (https://github.com/TrinityCore/TrinityCore/commit/20ac55ffef0576fba8fb6fa166fcdcf56d30ea3b)
This commit is contained in:
@@ -5523,8 +5523,11 @@ namespace Game.Spells
|
|||||||
if (activeGlyphId == glyphId)
|
if (activeGlyphId == glyphId)
|
||||||
return SpellCastResult.UniqueGlyph;
|
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;
|
return SpellCastResult.GlyphExclusiveCategory;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user