*Spell::EffectPlayerPull should not use KnockbackFrom, this moves you away from the destination, instead of towards. Fix by disassembler. Closes #169

--HG--
branch : trunk
This commit is contained in:
maximius
2009-11-19 04:23:36 -08:00
parent 07c27142ec
commit ffe4451dc2

View File

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