From 16457223eeb931ce15e68724abcf4846ef5bdaab Mon Sep 17 00:00:00 2001 From: Necrovoice Date: Thu, 31 May 2018 17:58:56 -0400 Subject: [PATCH] Spell target update. Update targetMask to once again work with verious spells requiring such checks. Thanks @h0zen --- src/game/WorldHandlers/Spell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/WorldHandlers/Spell.cpp b/src/game/WorldHandlers/Spell.cpp index 70664b1e40..8f987926b5 100644 --- a/src/game/WorldHandlers/Spell.cpp +++ b/src/game/WorldHandlers/Spell.cpp @@ -6134,7 +6134,7 @@ SpellCastResult Spell::CheckPetCast(Unit* target) Unit* _target = m_targets.getUnitTarget(); - if (_target) // for target dead/target not valid + if (_target && m_targets.m_targetMask & TARGET_FLAG_UNIT) // for target dead/target not valid { if (IsPositiveSpell(m_spellInfo->Id)) {