aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaximius <none@none>2009-11-19 04:23:36 -0800
committermaximius <none@none>2009-11-19 04:23:36 -0800
commitffe4451dc2cefe429d81fbd7bef69452eef619a6 (patch)
treea09eee0f27048e64de31061506c6f91b30e92bc1 /src
parent07c27142ec4e5191a494c0b349483019a6f7b8f2 (diff)
*Spell::EffectPlayerPull should not use KnockbackFrom, this moves you away from the destination, instead of towards. Fix by disassembler. Closes #169
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 9eaedbe2a3c..5198722ba85 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -6750,7 +6750,7 @@ void Spell::EffectPlayerPull(uint32 i)
if(!unitTarget)
return;
- unitTarget->KnockbackFrom(m_caster->GetPositionX(), m_caster->GetPositionY(), float(damage ? damage : unitTarget->GetDistance2d(m_caster)), float(m_spellInfo->EffectMiscValue[i])/10);
+ unitTarget->GetMotionMaster()->MoveJump(m_caster->GetPositionX(), m_caster->GetPositionY(), float(damage ? damage : unitTarget->GetDistance2d(m_caster)), float(m_spellInfo->EffectMiscValue[i])/10);
}
void Spell::EffectDispelMechanic(uint32 i)