diff options
author | ariel- <ariel-@users.noreply.github.com> | 2018-01-03 22:49:13 -0300 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-05-16 21:56:05 +0200 |
commit | 83159544b52bf48e8ba3a6eb98c1f4918c0b7bbe (patch) | |
tree | ad3911b24bf8e03805502c0b1744337947bf0ca7 | |
parent | 34c7810fe507eca1b8b9389630db5d5d26d92e77 (diff) |
Core/Spells: fix casting NO_TARGET event spells
Closes #19978
(cherry picked from commit e2451136600bf4c30eb547bd8579f019cfd37a3d)
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 8b0733a4b92..8059b9bc45c 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -785,7 +785,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); |