From cd16473d1e09ddf0deb78e030d8214ac31d4f4db Mon Sep 17 00:00:00 2001 From: ratkosrb Date: Sun, 16 Jun 2024 13:26:11 +0300 Subject: [PATCH] Fix not being able to cancel some auras. --- src/game/Handlers/SpellHandler.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/game/Handlers/SpellHandler.cpp b/src/game/Handlers/SpellHandler.cpp index 9be3f05b0..26bfdfcf7 100644 --- a/src/game/Handlers/SpellHandler.cpp +++ b/src/game/Handlers/SpellHandler.cpp @@ -379,16 +379,15 @@ void WorldSession::HandleCancelAuraOpcode(WorldPacket& recvPacket) return; #if SUPPORTED_CLIENT_BUILD > CLIENT_BUILD_1_6_1 - if (spellInfo->Attributes & SPELL_ATTR_NO_AURA_CANCEL) + if (spellInfo->HasAttribute(SPELL_ATTR_NO_AURA_CANCEL)) return; #endif - if (spellInfo->Attributes & SPELL_ATTR_DO_NOT_DISPLAY) + if (spellInfo->HasAttribute(SPELL_ATTR_DO_NOT_DISPLAY)) return; - if (spellInfo->AttributesEx & SPELL_ATTR_EX_NO_AURA_ICON) + if (spellInfo->HasAttribute(SPELL_ATTR_EX_NO_AURA_ICON) && !spellInfo->activeIconID) return; - if (spellInfo->IsPassiveSpell()) return;