*Do not let spell (stun/confuse/fear) interrupt itself (cause crash).

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-12 15:11:25 -06:00
parent 7827d743a6
commit 041cbec7de
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -3777,6 +3777,10 @@ void Unit::InterruptSpell(uint32 spellType, bool withDelayed)
if(m_currentSpells[spellType] && (withDelayed || m_currentSpells[spellType]->getState() != SPELL_STATE_DELAYED) )
{
// for example, do not let self-stun aura interrupt itself
if(!m_currentSpells[spellType]->IsInterruptable())
return;
// send autorepeat cancel message for autorepeat spells
if (spellType == CURRENT_AUTOREPEAT_SPELL)
{