579 {
585 for (
uint8 i = 0; i < 4; ++i)
586 {
587 float nx = x + 2.5f * cos((M_PI / 4) + (i * (M_PI / 2)));
588 float ny = y + 2.5f * std::sin((M_PI / 4) + (i * (M_PI / 2)));
590 {
593 }
594 }
595 }
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
bool IsWithinLOS(float x, float y, float z, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS) const
Definition: Object.cpp:1326
float GetPositionZ() const
Definition: Position.h:119
void SetOrientation(float orientation)
Definition: Position.h:112
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1168
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
int32 GetEffectValue() const
Definition: SpellScript.cpp:600
Unit * GetCaster()
Definition: SpellScript.cpp:401