aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authorthenecromancer <none@none>2010-04-05 13:18:14 +0200
committerthenecromancer <none@none>2010-04-05 13:18:14 +0200
commit1fa2fbc658e5209d3df08e0dc7bb35e91d73b79a (patch)
treeb326d6a27b8285d7d5f295ef463a89f4e2e05a62 /src/game/Spell.cpp
parenta1db8825d4c19f7a5695735cd6794d1ea2786017 (diff)
Fix wrong condition in previous commit, sorry for that
--HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-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)