mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[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:
parent
09b4acc53e
commit
b57f4a179b
3 changed files with 7 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue