1498 {
1501 {
1503 std::list<Unit*> drakes;
1504 c->AI()->SelectTargetList(drakes, (c->GetMap()->GetSpawnMode() == 0 ? 1 : 3), SelectTargetMethod::Random, 0, 0.0f, false, true, 57403 );
1505 for (std::list<Unit*>::iterator itr = drakes.begin(); itr != drakes.end() && i < 3; ++itr)
1506 {
1508 if (
Vehicle* v = (*itr)->GetVehicleKit())
1509 if (
Unit* p = v->GetPassenger(0))
1512 }
1513 }
1514
1515 return true;
1516 }
@ EMOTE_SURGE_OF_POWER_WARNING_P3
Definition: boss_malygos.cpp:166
Definition: Creature.h:46
Player * ToPlayer()
Definition: Object.h:198
Creature * ToCreature()
Definition: Object.h:202
Definition: Player.h:1064