◆ FilterTargets()
| void spell_eoe_ph3_surge_of_power::FilterTargets |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
1314 {
1316 {
1317 targets.clear();
1318 for (
uint8 i = 0; i < 3; ++i)
1321 targets.push_back(u);
1322 }
1323 }
std::uint8_t uint8
Definition Define.h:109
Unit * GetCaster()
Definition SpellScript.cpp:401
ObjectGuid DrakeGUID[3]
Definition boss_malygos.cpp:1290
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.
1293 {
1296 {
1298 std::list<Unit*> drakes;
1299 c->AI()->SelectTargetList(drakes, (c->GetMap()->GetSpawnMode() == 0 ? 1 : 3),
SelectTargetMethod::
Random, 0, 0.0f, false, true, 57403 );
1300 for (std::list<Unit*>::iterator itr = drakes.begin(); itr != drakes.end() && i < 3; ++itr)
1301 {
1303 if (
Vehicle* v = (*itr)->GetVehicleKit())
1304 if (
Unit* p = v->GetPassenger(0))
1307 }
1308 }
1309
1310 return true;
1311 }
SelectTargetMethod
Definition UnitAI.h:44
@ EMOTE_SURGE_OF_POWER_WARNING_P3
Definition boss_malygos.cpp:160
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