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
@@ -417,7 +417,7 @@ void WorldSession::HandleCancelAuraOpcode(WorldPacket& recvPacket)
return;
// not allow remove spells with attr SPELL_ATTR0_CANT_CANCEL
if (spellInfo->Attributes & SPELL_ATTR0_CANT_CANCEL)
if (spellInfo->HasAttribute(SPELL_ATTR0_CANT_CANCEL))
return;
// channeled spell case (it currently cast then)