From 0e757d8b697cdaa6294245551ec6468d9e6dd07a Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 15 Feb 2009 13:03:28 -0600 Subject: *Fix knockback angle calculation. --HG-- branch : trunk --- src/game/SpellEffects.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game') diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index da2471886e5..61064274b8c 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5950,8 +5950,8 @@ void Spell::EffectKnockBack(uint32 i) float dy = unitTarget->GetPositionY() - y; float dist = sqrt((dx*dx) + (dy*dy)); - float vsin = dx / dist; - float vcos = dy / dist; + float vcos = dx / dist; + float vsin = dy / dist; WorldPacket data(SMSG_MOVE_KNOCK_BACK, (8+4+4+4+4+4)); data.append(unitTarget->GetPackGUID()); -- cgit v1.2.3