From c92693102d137c9329dac51cb50dbdbbf855d3f8 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 18 May 2021 12:26:29 -0400 Subject: [PATCH] Core/Spells: fix casting NO_TARGET event spells Port From (https://github.com/TrinityCore/TrinityCore/commit/83159544b52bf48e8ba3a6eb98c1f4918c0b7bbe) --- Source/Game/Spells/Spell.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index 74702747d..a7780ad0d 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -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);