◆ FilterTargets()
void spell_eoe_ph3_surge_of_power::FilterTargets |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
1518 {
1520 {
1521 targets.clear();
1522 for (
uint8 i = 0; i < 3; ++i)
1525 targets.push_back(u);
1526 }
1527 }
std::uint8_t uint8
Definition Define.h:109
Unit * GetCaster()
Definition SpellScript.cpp:401
ObjectGuid DrakeGUID[3]
Definition boss_malygos.cpp:1494
Unit * GetUnit(WorldObject const &, ObjectGuid const &guid)
Definition ObjectAccessor.cpp:199
References DrakeGUID, SpellScript::GetCaster(), and ObjectAccessor::GetUnit().
Referenced by Register().
◆ Load()
bool spell_eoe_ph3_surge_of_power::Load |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
Reimplemented from _SpellScript.
1497 {
1500 {
1502 std::list<Unit*> drakes;
1503 c->AI()->SelectTargetList(drakes, (c->GetMap()->GetSpawnMode() == 0 ? 1 : 3),
SelectTargetMethod::
Random, 0, 0.0f, false, true, 57403 );
1504 for (std::list<Unit*>::iterator itr = drakes.begin(); itr != drakes.end() && i < 3; ++itr)
1505 {
1507 if (
Vehicle* v = (*itr)->GetVehicleKit())
1508 if (
Unit* p = v->GetPassenger(0))
1511 }
1512 }
1513
1514 return true;
1515 }
SelectTargetMethod
Definition UnitAI.h:44
@ EMOTE_SURGE_OF_POWER_WARNING_P3
Definition boss_malygos.cpp:166
Player * ToPlayer()
Definition Object.h:202
Creature * ToCreature()
Definition Object.h:206
References DrakeGUID, EMOTE_SURGE_OF_POWER_WARNING_P3, SpellScript::GetCaster(), Random, Object::ToCreature(), and Object::ToPlayer().
◆ PrepareSpellScript()
◆ Register()
void spell_eoe_ph3_surge_of_power::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ DrakeGUID
ObjectGuid spell_eoe_ph3_surge_of_power::DrakeGUID[3] |
|
private |
The documentation for this class was generated from the following file:
- azerothcore-wotlk/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp