1140 {
1142
1144 {
1145 Position pos = caster->GetRandomNearPosition(5.0f);
1147 {
1148 haunt->SetSpeed(
MOVE_RUN, 0.5,
true);
1149 haunt->GetMotionMaster()->MoveFollow(caster, 1, M_PI);
1150 }
1151 }
1152 }
constexpr auto IN_MILLISECONDS
Definition: Common.h:53
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
@ MOVE_RUN
Definition: UnitDefines.h:329
@ TEMPSUMMON_TIMED_DESPAWN
Definition: Object.h:47
@ NPC_SCOURGE_HAUNT
Definition: spell_generic.cpp:1131
Definition: Creature.h:46
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:2355
Definition: Position.h:28
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
Unit * GetCaster()
Definition: SpellScript.cpp:401