diff options
author | thenecromancer <none@none> | 2010-02-18 00:33:09 +0100 |
---|---|---|
committer | thenecromancer <none@none> | 2010-02-18 00:33:09 +0100 |
commit | 54d8411eb950e68f2abee2be9f4491d368e024fe (patch) | |
tree | adb5c7e6e0cecd069ecbb3d6bf15ba3e3125894a /src | |
parent | 6d05d649eb7427e84df13fc2b72f78384ba729ed (diff) |
Fix error, should've tested it before :<
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 585fbbc42af..b7ff7df86df 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -6832,7 +6832,7 @@ void Spell::EffectPlayerPull(uint32 i) speedZ = float(m_spellInfo->EffectMiscValueB[i])/10; else speedZ = 10.0f; - float speedXY = m_caster->GetExactDist2d(x, y) * 10.0f / speedZ; + float speedXY = m_caster->GetExactDist2d(unitTarget) * 10.0f / speedZ; unitTarget->GetMotionMaster()->MoveJump(m_caster->GetPositionX(), m_caster->GetPositionY(), m_caster->GetPositionZ(), speedXY, speedZ); } |