Core/Spells: fix casting NO_TARGET event spells

Port From (https://github.com/TrinityCore/TrinityCore/commit/83159544b52bf48e8ba3a6eb98c1f4918c0b7bbe)
This commit is contained in:
hondacrx
2021-05-18 12:26:29 -04:00
parent 9851142796
commit c92693102d
+1 -1
View File
@@ -271,7 +271,7 @@ namespace Game.Spells
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 == null && m_UniqueTargetInfo.Empty() && m_UniqueGOTargetInfo.Empty() && m_UniqueItemInfo.Empty() && !m_targets.HasDst())
{
SendCastResult(SpellCastResult.BadImplicitTargets);
Finish(false);