◆ FilterTargets()
| void spell_eoe_ph3_surge_of_power::FilterTargets |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
1507 {
1509 {
1510 targets.clear();
1511 for (
uint8 i = 0; i < 3; ++i)
1514 targets.push_back(u);
1515 }
1516 }
std::uint8_t uint8
Definition Define.h:109
Unit * GetCaster()
Definition SpellScript.cpp:401
ObjectGuid DrakeGUID[3]
Definition boss_malygos.cpp:1483
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.
1486 {
1489 {
1491 std::list<Unit*> drakes;
1492 c->AI()->SelectTargetList(drakes, (c->GetMap()->GetSpawnMode() == 0 ? 1 : 3),
SelectTargetMethod::
Random, 0, 0.0f, false, true, 57403 );
1493 for (std::list<Unit*>::iterator itr = drakes.begin(); itr != drakes.end() && i < 3; ++itr)
1494 {
1496 if (
Vehicle* v = (*itr)->GetVehicleKit())
1497 if (
Unit* p = v->GetPassenger(0))
1500 }
1501 }
1502
1503 return true;
1504 }
SelectTargetMethod
Definition UnitAI.h:44
@ EMOTE_SURGE_OF_POWER_WARNING_P3
Definition boss_malygos.cpp:159
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