305 {
308 if (!target)
309 return;
310
313 {
314 float o =
frand(0, 2 * M_PI);
316 }
317 else
319
320 float speedXY = float(
GetSpellInfo()->Effects[effIndex].MiscValue) * 0.1f;
322
324 }
float frand(float min, float max)
Definition: Random.cpp:57
double gravity
Definition: MovementUtil.cpp:24
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1256
Definition: Position.h:27
float GetPositionZ() const
Definition: Position.h:118
float GetPositionX() const
Definition: Position.h:116
float GetPositionY() const
Definition: Position.h:117
void Relocate(float x, float y)
Definition: Position.h:72
MotionMaster * GetMotionMaster()
Definition: Unit.h:1620
void MoveJump(Position const &pos, float speedXY, float speedZ, uint32 id=0)
Definition: MotionMaster.h:229
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
Unit * GetHitUnit()
Definition: SpellScript.cpp:448
Unit * GetCaster()
Definition: SpellScript.cpp:401