◆ FilterTargets()
| void spell_malygos_surge_of_power_25::FilterTargets |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
1372 {
1374
1375 for (auto itr = targets.begin(); itr != targets.end();)
1376 {
1377 bool found = false;
1378
1381 {
1382 if ((*itr)->GetGUID() == caster->
AI()->
GetGUID(i))
1383 {
1384 found = true;
1385 break;
1386 }
1387 }
1388
1389 if (!found)
1390 targets.erase(itr++);
1391 else
1392 ++itr;
1393 }
1394 }
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