aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaximius <none@none>2009-11-21 02:14:28 -0800
committermaximius <none@none>2009-11-21 02:14:28 -0800
commit4f8f69a8054a37ce8bd0a2b28acfec749b87cdea (patch)
tree9fb22f8c4b38b917836a6b63061405b8385cf9b3 /src
parentc19489cd50dc09eb189d7fab979fa2b0769160b8 (diff)
*Less hacky Disengage.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 3712e1a1140..ebb372c84a0 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -1715,21 +1715,14 @@ void Spell::EffectDummy(uint32 i)
}
break;
case SPELLFAMILY_HUNTER:
- switch(m_spellInfo->Id)
+ switch (m_spellInfo->Id)
{
case 781: // Disengage
{
if (m_caster->GetTypeId() != TYPEID_PLAYER)
return;
- WorldPacket data(SMSG_MOVE_KNOCK_BACK, 50);
- data.append(m_caster->GetPackGUID());
- data << getMSTime();
- data << float(cosf(m_caster->GetOrientation()+M_PI));
- data << float(sinf(m_caster->GetOrientation()+M_PI));
- data << float(15);
- data << float(-7.0f);
- ((Player*)m_caster)->GetSession()->SendPacket(&data);
+ m_caster->JumpTo(15.0f, 7.0f, false);
return;
}
case 23989: // Readiness talent