From 18cc905c4270cad9fa6df5cdb472061c2a80889e Mon Sep 17 00:00:00 2001 From: QAston Date: Thu, 22 Jan 2009 20:48:08 +0100 Subject: [PATCH] *Fix fishing and Eagle eye. --HG-- branch : trunk --- src/game/Unit.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 35b45c2750..2e966eb53c 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -4673,8 +4673,13 @@ void Unit::RemoveAura(AuraMap::iterator &i, AuraRemoveMode mode) { // 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; + if (AurSpellInfo->EffectApplyAuraName[Aur->GetEffIndex()]!=SPELL_AURA_PERIODIC_DUMMY + && AurSpellInfo->EffectApplyAuraName[Aur->GetEffIndex()]!= SPELL_AURA_DUMMY) + //don't stop channeling of scripted spells (this is actually a hack) + { + caster->m_currentSpells[CURRENT_CHANNELED_SPELL]->cancel(false); + channeled = true; + } } } }