Don't allow cancelling passive auras by client

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-07-21 14:48:44 +02:00
parent 14b6a68857
commit 04fd9ac4ce
@@ -411,6 +411,10 @@ void WorldSession::HandleCancelAuraOpcode(WorldPacket& recvPacket)
if (!IsPositiveSpell(spellId) || (spellInfo->Attributes & SPELL_ATTR_CANT_CANCEL)) if (!IsPositiveSpell(spellId) || (spellInfo->Attributes & SPELL_ATTR_CANT_CANCEL))
return; return;
// don't allow cancelling passive auras (some of them are visible)
if (IsPassiveSpell(spellInfo))
return;
// channeled spell case (it currently casted then) // channeled spell case (it currently casted then)
if (IsChanneledSpell(spellInfo)) if (IsChanneledSpell(spellInfo))
{ {