876 {
878 if (target->GetDisplayId() != 11686)
881 if (creature->GetExactDist2d(player) <= 2.75f)
882 {
883 creature->AI()->DoAction(1);
884 creature->GetMotionMaster()->MoveIdle();
886 creature->SetDisplayId(11686);
887 creature->DespawnOrUnsummon(1500);
888 }
889 }
@ 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:43
Creature * ToCreature()
Definition: Object.h:205
Player * SelectNearestPlayer(float distance=0) const
Definition: Object.cpp:2484
Definition: Player.h:1081
Unit * GetTarget() const
Definition: SpellScript.cpp:1165