◆ FilterTargets()
| void spell_malygos_surge_of_power_25::FilterTargets |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
1344 {
1346
1347 for (auto itr = targets.begin(); itr != targets.end();)
1348 {
1349 bool found = false;
1350
1353 {
1354 if ((*itr)->GetGUID() == caster->
AI()->
GetGUID(i))
1355 {
1356 found = true;
1357 break;
1358 }
1359 }
1360
1361 if (!found)
1362 targets.erase(itr++);
1363 else
1364 ++itr;
1365 }
1366 }
std::uint8_t uint8
Definition Define.h:109
@ DATA_FIRST_SURGE_TARGET_GUID
Definition boss_malygos.cpp:178
@ NUM_MAX_SURGE_TARGETS
Definition boss_malygos.cpp:179
CreatureAI * AI() const
Definition Creature.h:144
Creature * ToCreature()
Definition Object.h:206
Unit * GetCaster()
Definition SpellScript.cpp:401
virtual ObjectGuid GetGUID(int32=0) const
Definition UnitAI.h:221
References Creature::AI(), DATA_FIRST_SURGE_TARGET_GUID, SpellScript::GetCaster(), UnitAI::GetGUID(), NUM_MAX_SURGE_TARGETS, and Object::ToCreature().
Referenced by Register().
◆ Load()
| bool spell_malygos_surge_of_power_25::Load |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ PrepareSpellScript()
◆ Register()
| void spell_malygos_surge_of_power_25::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file:
- azerothcore-wotlk/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp