286 {
289 if (!target)
290 return;
291
294 {
296 float o =
frand(0, 2 * M_PI);
299 }
300 else
302
303 float speedXY = float(
GetSpellInfo()->Effects[effIndex].MiscValue) * 0.1f;
305
307 }
float frand(float min, float max)
Definition: Random.cpp:57
double gravity
Definition: MovementUtil.cpp:24
void MovePositionToFirstCollision(Position &pos, float dist, float angle)
Definition: Object.cpp:2858
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1245
Definition: Position.h:28
float m_positionZ
Definition: Position.h:58
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:1601
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