449 {
452 if (!target)
453 return;
454
457 {
458 float o =
frand(0, 2 * M_PI);
460 }
461 else
463
464 float speedXY = float(
GetSpellInfo()->Effects[effIndex].MiscValue) * 0.1f;
466
468 }
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:1245
Definition: Position.h:28
float GetPositionZ() const
Definition: Position.h:119
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118
void Relocate(float x, float y)
Definition: Position.h:73
MotionMaster * GetMotionMaster()
Definition: Unit.h:1615
void MoveJump(Position const &pos, float speedXY, float speedZ, uint32 id=0)
Definition: MotionMaster.h:227
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