diff options
author | thenecromancer <none@none> | 2010-01-13 11:23:14 +0100 |
---|---|---|
committer | thenecromancer <none@none> | 2010-01-13 11:23:14 +0100 |
commit | 531cd027aa028068a981d1c3e31af26c7ee2ffef (patch) | |
tree | 16679939d770b02636f85052b82674da776c8c1b /src | |
parent | e00fd0791b38d78da80d32b4a683612a88e01198 (diff) |
Fix blink always teleporting to ground
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 849bd739d43..3d68aa113f4 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -6600,10 +6600,9 @@ void Spell::EffectLeapForward(uint32 i) destz = fabs(ground - z) <= fabs(floor - z) ? ground:floor; } else break; } - if (j == 9) - return; - unitTarget->NearTeleportTo(destx, desty, destz + 0.07531, orientation, unitTarget==m_caster); + if(j < 10) + unitTarget->NearTeleportTo(destx, desty, destz + 0.07531, orientation, unitTarget==m_caster); } void Spell::EffectReputation(uint32 i) |