329 {
332 {
333 if (aurEff->GetTickNumber() < 30)
334 {
335
336 float diff = (2 * M_PI) / (4 * 30);
337 float new_o = t->GetOrientation() + diff *
dir;
338 if (new_o >= 2 * M_PI)
339 new_o -= 2 * M_PI;
340 else if (new_o < 0)
341 new_o += 2 * M_PI;
342 t->UpdateOrientation(new_o);
343 t->SetFacingTo(new_o);
345 }
346 else if (aurEff->GetTickNumber() == 33)
347 {
349 t->DisableRotate(false);
350 if (t->IsCreature())
352 if (t->GetVictim())
353 {
355 t->GetMotionMaster()->MoveChase(t->GetVictim());
356 }
357 }
358 else if (aurEff->GetTickNumber() >= 34)
360 }
361 }
@ SPELL_WAILING_SOULS_DMG_N
Definition: boss_devourer_of_souls.cpp:56
@ AURA_REMOVE_BY_EXPIRE
Definition: SpellAuraDefines.h:395
@ UNIT_FIELD_TARGET
Definition: UpdateFields.h:92
@ REACT_AGGRESSIVE
Definition: Unit.h:550
@ UNIT_STATE_ROOT
Definition: UnitDefines.h:159
void PreventDefaultAction()
Definition: SpellScript.cpp:985
void Remove(uint32 removeMode=0)
Definition: SpellScript.cpp:1040
Unit * GetTarget() const
Definition: SpellScript.cpp:1165
int8 dir
Definition: boss_devourer_of_souls.cpp:320