aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 3d439558418..c582de8463a 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -4502,7 +4502,7 @@ SpellCastResult Spell::CheckCast(bool strict)
Unit *target = m_targets.getUnitTarget();
// In pure self-cast spells, the client won't send any unit target
- if (target && (m_targets.getTargetMask() == TARGET_FLAG_SELF || m_targets.getTargetMask() & TARGET_FLAG_CASTER)) // TARGET_FLAG_SELF == 0, remember!
+ if (!target && (m_targets.getTargetMask() == TARGET_FLAG_SELF || m_targets.getTargetMask() & TARGET_FLAG_CASTER)) // TARGET_FLAG_SELF == 0, remember!
target = m_caster;
if (target)