[10079] Don't allow cancel passive spells

This commit is contained in:
Laise 2010-06-19 20:52:18 +03:00
parent b62d64e7c7
commit 6bfd0aa5b5
2 changed files with 4 additions and 1 deletions

View file

@ -420,6 +420,9 @@ void WorldSession::HandleCancelAuraOpcode( WorldPacket& recvPacket)
if (spellInfo->Attributes & SPELL_ATTR_CANT_CANCEL) if (spellInfo->Attributes & SPELL_ATTR_CANT_CANCEL)
return; return;
if (IsPassiveSpell(spellInfo))
return;
if (!IsPositiveSpell(spellId)) if (!IsPositiveSpell(spellId))
{ {
// ignore for remote control state // ignore for remote control state

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10078" #define REVISION_NR "10079"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__