aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <none@none>2010-07-21 14:48:44 +0200
committerShauren <none@none>2010-07-21 14:48:44 +0200
commit04fd9ac4ce0d474c764b194fb0057dc149803810 (patch)
tree3afac7e30f9be134e3df455c9f1be845343e409a /src
parent14b6a688570c9bc029de28321779c30e4129577b (diff)
Don't allow cancelling passive auras by client
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Server/Protocol/Handlers/SpellHandler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp b/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp
index a526c61a5e7..937f6799f87 100644
--- a/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp
+++ b/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp
@@ -411,6 +411,10 @@ void WorldSession::HandleCancelAuraOpcode(WorldPacket& recvPacket)
if (!IsPositiveSpell(spellId) || (spellInfo->Attributes & SPELL_ATTR_CANT_CANCEL))
return;
+ // don't allow cancelling passive auras (some of them are visible)
+ if (IsPassiveSpell(spellInfo))
+ return;
+
// channeled spell case (it currently casted then)
if (IsChanneledSpell(spellInfo))
{