404 {
407 {
409 std::list<Player*> players;
413
414 if (players.size() > 0)
415 {
416 std::list<Player*>::iterator itr = players.begin();
417 std::advance(itr,
urand(0, players.size() - 1));
418 if (
Creature* trigger =
me->
SummonTrigger((*itr)->GetPositionX(), (*itr)->GetPositionY(), (*itr)->GetPositionZ(), 0, 2000,
true))
420 }
421 }
422 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
@ SPELL_HEAT
Definition: go_scripts.cpp:389
GameObject *const me
Definition: GameObjectAI.h:36
Definition: Creature.h:46
Creature * SummonTrigger(float x, float y, float z, float ang, uint32 dur, bool setLevel=false, CreatureAI *(*GetAI)(Creature *)=nullptr)
Definition: Object.cpp:2367
static void VisitWorldObjects(WorldObject const *obj, T &visitor, float radius, bool dont_load=true)
Definition: CellImpl.h:193
Definition: GridNotifiers.h:522
Definition: GridNotifiers.h:1384