Core/Spells: Implement HasAttribute() helper for SpellInfo for easier readability
Original code by @Shocker (6.x branch)
This commit is contained in:
1 parent
e96676aedd
commit
2ac40775a2
18 files changed
+220
-210
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user