Fix wrong condition in previous commit, sorry for that

--HG--
branch : trunk
This commit is contained in:
thenecromancer
2010-04-05 13:18:14 +02:00
parent a1db8825d4
commit 1fa2fbc658

View File

@@ -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)