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