fix(Core/Spell): Target "TARGET_DEST_CHANNEL_TARGET" (#1979)
This commit is contained in:
@@ -1028,6 +1028,11 @@ void Spell::SelectImplicitChannelTargets(SpellEffIndex effIndex, SpellImplicitTa
|
|||||||
if (target)
|
if (target)
|
||||||
m_targets.SetDst(*target);
|
m_targets.SetDst(*target);
|
||||||
}
|
}
|
||||||
|
else if (Spell* channeledSpell = m_originalCaster->GetCurrentSpell(CURRENT_CHANNELED_SPELL))
|
||||||
|
{
|
||||||
|
if (channeledSpell->m_targets.GetUnitTarget())
|
||||||
|
m_targets.SetDst(*channeledSpell->m_targets.GetUnitTarget());
|
||||||
|
}
|
||||||
else //if (!m_targets.HasDst())
|
else //if (!m_targets.HasDst())
|
||||||
{
|
{
|
||||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||||
|
|||||||
Reference in New Issue
Block a user