diff options
author | thenecromancer <none@none> | 2010-04-05 13:18:14 +0200 |
---|---|---|
committer | thenecromancer <none@none> | 2010-04-05 13:18:14 +0200 |
commit | 1fa2fbc658e5209d3df08e0dc7bb35e91d73b79a (patch) | |
tree | b326d6a27b8285d7d5f295ef463a89f4e2e05a62 | |
parent | a1db8825d4c19f7a5695735cd6794d1ea2786017 (diff) |
Fix wrong condition in previous commit, sorry for that
--HG--
branch : trunk
-rw-r--r-- | src/game/Spell.cpp | 2 |
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) |