◆ FilterTargets()
| void spell_malygos_surge_of_power_25::FilterTargets |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
1342 {
1344
1345 for (auto itr = targets.begin(); itr != targets.end();)
1346 {
1347 bool found = false;
1348
1351 {
1352 if ((*itr)->GetGUID() == caster->
AI()->
GetGUID(i))
1353 {
1354 found = true;
1355 break;
1356 }
1357 }
1358
1359 if (!found)
1360 targets.erase(itr++);
1361 else
1362 ++itr;
1363 }
1364 }
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:143
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