*Fix rain of fire.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-01-21 20:24:21 +01:00
parent 1f6bff8120
commit e0b527be8a
+7 -2
View File
@@ -4660,8 +4660,13 @@ void Unit::RemoveAura(AuraMap::iterator &i, AuraRemoveMode mode)
//prevent recurential call //prevent recurential call
&& caster->m_currentSpells[CURRENT_CHANNELED_SPELL]->getState() != SPELL_STATE_FINISHED) && caster->m_currentSpells[CURRENT_CHANNELED_SPELL]->getState() != SPELL_STATE_FINISHED)
{ {
caster->m_currentSpells[CURRENT_CHANNELED_SPELL]->cancel(false); if (caster==this || !IsAreaOfEffectSpell(AurSpellInfo))
channeled = true; {
// remove auras only for non-aoe spells or when chanelled aura is removed
// because aoe spells don't require aura on target to continue
caster->m_currentSpells[CURRENT_CHANNELED_SPELL]->cancel(false);
channeled = true;
}
} }
} }
} }