Core/Spells: fix casting NO_TARGET event spells

Closes #19978
This commit is contained in:
ariel- authored and Aokromes committed 2018-01-06 13:22:44 +01:00
1 parent 06a0a5cd4b
commit e6e1403b2d
1 file changed
+1 -1
+1 -1
View File
@@ -789,7 +789,7 @@ void Spell::SelectSpellTargets()
if (m_spellInfo->IsChanneled())
{
// maybe do this for all spells?
if (m_UniqueTargetInfo.empty() && m_UniqueGOTargetInfo.empty() && m_UniqueItemInfo.empty() && !m_targets.HasDst())
if (!focusObject && m_UniqueTargetInfo.empty() && m_UniqueGOTargetInfo.empty() && m_UniqueItemInfo.empty() && !m_targets.HasDst())
{
SendCastResult(SPELL_FAILED_BAD_IMPLICIT_TARGETS);
finish(false);