Core/Spells: Fix Shadowflame and others from spell_linked_spell with + + 1 db setting.

This commit is contained in:
Vlad
2011-09-03 20:38:23 +02:00
committed by QAston
parent ddacd0de94
commit 5a526d6d7f

View File

@@ -4756,7 +4756,8 @@ SpellCastResult Spell::CheckCast(bool strict)
}
{
SpellCastResult castResult = m_spellInfo->CheckExplicitTarget(m_caster, m_targets.GetObjectTarget(), m_targets.GetItemTarget());
// Check explicit target for m_originalCaster - todo: get rid of such workarounds
SpellCastResult castResult = m_spellInfo->CheckExplicitTarget(m_originalCaster ? m_originalCaster : m_caster, m_targets.GetObjectTarget(), m_targets.GetItemTarget());
if (castResult != SPELL_CAST_OK)
return castResult;
}