273 {
276 if (!target)
277 return;
278
281 {
283 float o =
frand(0, 2 * M_PI);
286 }
287 else
289
290 float speedXY = float(
GetSpellInfo()->Effects[effIndex].MiscValue) * 0.1f;
292
294 }
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:2871
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1256
Definition: Position.h:27
float m_positionZ
Definition: Position.h:57
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