1107 {
1109
1111 {
1112 Position pos = caster->GetRandomNearPosition(5.0f);
1114 {
1115 haunt->SetSpeed(
MOVE_RUN, 0.5,
true);
1116 haunt->GetMotionMaster()->MoveFollow(caster, 1, M_PI);
1117 }
1118 }
1119 }
constexpr auto IN_MILLISECONDS
Definition: Common.h:53
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
@ NPC_SCOURGE_HAUNT
Definition: spell_generic.cpp:1098
@ TEMPSUMMON_TIMED_DESPAWN
Definition: Object.h:48
@ MOVE_RUN
Definition: UnitDefines.h:329
Definition: Creature.h:43
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition: Object.cpp:2366
Definition: Position.h:27
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
Unit * GetCaster()
Definition: SpellScript.cpp:401