From ffe4451dc2cefe429d81fbd7bef69452eef619a6 Mon Sep 17 00:00:00 2001 From: maximius Date: Thu, 19 Nov 2009 04:23:36 -0800 Subject: *Spell::EffectPlayerPull should not use KnockbackFrom, this moves you away from the destination, instead of towards. Fix by disassembler. Closes #169 --HG-- branch : trunk --- src/game/SpellEffects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3