diff options
| author | joschiwald <joschiwald.trinity@gmail.com> | 2014-09-17 23:24:31 +0200 | 
|---|---|---|
| committer | joschiwald <joschiwald.trinity@gmail.com> | 2014-09-17 23:24:31 +0200 | 
| commit | 053beae172fe57f6495f8c6112063ea80deb0d66 (patch) | |
| tree | 66e71ff1c3468dade75808ce7b12efcad0ad8a86 /src/server/game/Movement/MotionMaster.cpp | |
| parent | e57a63939eca1988df87ff6dbd72150ee1fdb950 (diff) | |
Core/Spells: consider spell speed in SPELL_EFFECT_CHARGE
Misc: removed some duplicate guid words in logs
Diffstat (limited to 'src/server/game/Movement/MotionMaster.cpp')
| -rw-r--r-- | src/server/game/Movement/MotionMaster.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp index 4ba742e9397..7e6a2a3df16 100644 --- a/src/server/game/Movement/MotionMaster.cpp +++ b/src/server/game/Movement/MotionMaster.cpp @@ -415,7 +415,7 @@ void MotionMaster::MoveFall(uint32 id /*=0*/)      Mutate(new EffectMovementGenerator(id), MOTION_SLOT_CONTROLLED);  } -void MotionMaster::MoveCharge(float x, float y, float z, float speed, uint32 id, bool generatePath) +void MotionMaster::MoveCharge(float x, float y, float z, float speed /*= SPEED_CHARGE*/, uint32 id /*= EVENT_CHARGE*/, bool generatePath /*= false*/)  {      if (Impl[MOTION_SLOT_CONTROLLED] && Impl[MOTION_SLOT_CONTROLLED]->GetMovementGeneratorType() != DISTRACT_MOTION_TYPE)          return; @@ -433,16 +433,16 @@ void MotionMaster::MoveCharge(float x, float y, float z, float speed, uint32 id,      }  } -void MotionMaster::MoveCharge(PathGenerator const& path) +void MotionMaster::MoveCharge(PathGenerator const& path, float speed /*= SPEED_CHARGE*/)  {      G3D::Vector3 dest = path.GetActualEndPosition(); -    MoveCharge(dest.x, dest.y, dest.z, SPEED_CHARGE, EVENT_CHARGE_PREPATH); +    MoveCharge(dest.x, dest.y, dest.z, speed, EVENT_CHARGE_PREPATH);      // Charge movement is not started when using EVENT_CHARGE_PREPATH      Movement::MoveSplineInit init(_owner);      init.MovebyPath(path.GetPath()); -    init.SetVelocity(SPEED_CHARGE); +    init.SetVelocity(speed);      init.Launch();  }  | 
