893 {
895 if (target->GetDisplayId() != 11686)
898 if (creature->GetExactDist2d(player) <= 2.75f)
899 {
900 creature->AI()->DoAction(1);
901 creature->GetMotionMaster()->MoveIdle();
903 creature->SetDisplayId(11686);
904 creature->DespawnOrUnsummon(1500);
905 }
906 }
@ NPC_CONCENTRATED_LIGHT
Definition: boss_twin_valkyr.cpp:59
@ SPELL_UNLEASHED_LIGHT
Definition: boss_twin_valkyr.cpp:70
@ SPELL_UNLEASHED_DARK
Definition: boss_twin_valkyr.cpp:69
Definition: Creature.h:46
Creature * ToCreature()
Definition: Object.h:202
Player * SelectNearestPlayer(float distance=0) const
Definition: Object.cpp:2473
Definition: Player.h:1064
Unit * GetTarget() const
Definition: SpellScript.cpp:1165