◆ FilterTargets()
void spell_eoe_ph3_surge_of_power::FilterTargets |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
1519 {
1521 {
1522 targets.clear();
1523 for (
uint8 i = 0; i < 3; ++i)
1526 targets.push_back(u);
1527 }
1528 }
std::uint8_t uint8
Definition Define.h:109
Unit * GetCaster()
Definition SpellScript.cpp:401
ObjectGuid DrakeGUID[3]
Definition boss_malygos.cpp:1495
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.
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 }
SelectTargetMethod
Definition UnitAI.h:44
@ EMOTE_SURGE_OF_POWER_WARNING_P3
Definition boss_malygos.cpp:166
Player * ToPlayer()
Definition Object.h:201
Creature * ToCreature()
Definition Object.h:205
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