diff options
author | Chaplain <aionthefirst@gmail.com> | 2012-01-18 18:42:25 +0300 |
---|---|---|
committer | Chaplain <aionthefirst@gmail.com> | 2012-01-18 18:42:25 +0300 |
commit | accea2b44ed5fd5d1a3953f5b0deaf0ff5571807 (patch) | |
tree | d4826fa73c29235f7c62fd3a79c6f3d26baf68a0 /src/server/game/Movement/MotionMaster.cpp | |
parent | 86104943cb5ad053314559c33ec20292e13f27dc (diff) |
Core/Movegen: Added missing part in ChaseMovementgenerator and minor logic fix in MotionMaster::MoveJump()
Diffstat (limited to 'src/server/game/Movement/MotionMaster.cpp')
-rwxr-xr-x | src/server/game/Movement/MotionMaster.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp index b07c915165a..8975a2d7d7b 100755 --- a/src/server/game/Movement/MotionMaster.cpp +++ b/src/server/game/Movement/MotionMaster.cpp @@ -365,7 +365,10 @@ void MotionMaster::MoveJump(float x, float y, float z, float speedXY, float spee init.SetParabolic(max_height,0); init.SetVelocity(speedXY); init.Launch(); - Mutate(new EffectMovementGenerator(id), MOTION_SLOT_CONTROLLED); + if (i_owner->GetTypeId() == TYPEID_PLAYER) + Mutate(new EffectMovementGenerator(id), MOTION_SLOT_CONTROLLED); + else + Mutate(new EffectMovementGenerator(id), MOTION_SLOT_ACTIVE); } void MotionMaster::MoveFall(uint32 id/*=0*/) |