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
|
|
@ -2511,14 +2511,6 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
||||||
caster->InterruptSpell(CURRENT_CHANNELED_SPELL);
|
caster->InterruptSpell(CURRENT_CHANNELED_SPELL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Stop caster Penance chanelling on death
|
|
||||||
if (m_spellProto->SpellFamilyName == SPELLFAMILY_PRIEST &&
|
|
||||||
(m_spellProto->SpellFamilyFlags2 & UI64LIT(0x00000080)))
|
|
||||||
{
|
|
||||||
if (Unit* caster = GetCaster())
|
|
||||||
caster->InterruptSpell(CURRENT_CHANNELED_SPELL);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1756,10 +1756,14 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
||||||
return;
|
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))
|
if (m_caster->IsFriendlyTo(unitTarget))
|
||||||
m_caster->CastSpell(unitTarget, heal, true);
|
m_caster->CastSpell(unitTarget, heal, false);
|
||||||
else
|
else
|
||||||
m_caster->CastSpell(unitTarget, hurt, true);
|
m_caster->CastSpell(unitTarget, hurt, false);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9458"
|
#define REVISION_NR "9459"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue