Core/Spells: Implement HasAttribute() helper for SpellInfo for easier readability

Original code by @Shocker (6.x branch)
This commit is contained in:
Nayd committed 2015-03-18 23:16:39 +00:00
1 parent e96676aedd
commit 2ac40775a2
18 files changed
+220 -210

No files matched your search

+1 -1
View File
@@ -285,7 +285,7 @@ bool SpellChatLink::ValidateName(char* buffer, const char* context)
ChatLink::ValidateName(buffer, context);
// spells with that flag have a prefix of "$PROFESSION: "
if (_spell->Attributes & SPELL_ATTR0_TRADESPELL)
if (_spell->HasAttribute(SPELL_ATTR0_TRADESPELL))
{
SkillLineAbilityMapBounds bounds = sSpellMgr->GetSkillLineAbilityMapBounds(_spell->Id);
if (bounds.first == bounds.second)