From 1fa2fbc658e5209d3df08e0dc7bb35e91d73b79a Mon Sep 17 00:00:00 2001 From: thenecromancer Date: Mon, 5 Apr 2010 13:18:14 +0200 Subject: Fix wrong condition in previous commit, sorry for that --HG-- branch : trunk --- src/game/Spell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/Spell.cpp') 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) -- cgit v1.2.3