Don't allow cancelling passive auras by client
--HG-- branch : trunk
This commit is contained in:
@@ -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))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user