1658 {
1662 float angle = summoner->
GetAngle(x, y);
1664 return;
1665
1666 for (
uint8 a = 0; a < 2; ++a)
1667 for (
uint8 i = 6; i > 0; --i)
1668 {
1669 float destX = summoner->
GetPositionX() + cos(angle + a * M_PI) * i * 10.0f;
1670 float destY = summoner->
GetPositionY() + std::sin(angle + a * M_PI) * i * 10.0f;
1673 destX > 4585.0f && destY > 2716.0f && destY < 2822.0f)
1674 {
1676 if (std::fabs(destZ - summoner->
GetPositionZ()) < 10.0f)
1677 {
1679 return;
1680 }
1681 }
1682 }
1683
1685 }
std::uint8_t uint8
Definition: Define.h:109
@ LINEOFSIGHT_ALL_CHECKS
Definition: Map.h:198
uint32 GetPhaseMask() const
Definition: Object.h:446
Map * GetMap() const
Definition: Object.h:531
float GetMapHeight(float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const
Definition: Object.cpp:3118
float GetExactDist2d(const float x, const float y) const
Definition: Position.h:166
float GetPositionZ() const
Definition: Position.h:119
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118
float GetAngle(const Position *pos) const
Definition: Position.cpp:77
void Relocate(float x, float y)
Definition: Position.h:73
bool isInLineOfSight(float x1, float y1, float z1, float x2, float y2, float z2, uint32 phasemask, LineOfSightChecks checks, VMAP::ModelIgnoreFlags ignoreFlags) const
Definition: Map.cpp:2438
WorldLocation _position
Definition: Spell.h:103
Unit * GetCaster()
Definition: SpellScript.cpp:401