[9459] Make spell 47540 and ranks channeling interruptible

In fact make triggered spell replace main spell for channeling.
This also let drop hack for target death case interrupt channeling for spell.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
MrLama 2010-02-26 22:34:57 +03:00 committed by VladimirMangos
parent 09b4acc53e
commit b57f4a179b
3 changed files with 7 additions and 11 deletions

View file

@ -1756,10 +1756,14 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
return;
}
// prevent interrupted message for main spell
finish(true);
// replace cast by selected spell, this also make it interruptible including target death case
if (m_caster->IsFriendlyTo(unitTarget))
m_caster->CastSpell(unitTarget, heal, true);
m_caster->CastSpell(unitTarget, heal, false);
else
m_caster->CastSpell(unitTarget, hurt, true);
m_caster->CastSpell(unitTarget, hurt, false);
return;
}