Skip to content

Commit

Permalink
Spell target update.
Browse files Browse the repository at this point in the history
Update targetMask to once again work with verious spells requiring such checks.
Thanks @H0zen
  • Loading branch information
Necrovoice committed May 31, 2018
1 parent 2b08f31 commit 1645722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/WorldHandlers/Spell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 1645722

Please sign in to comment.