◆ FilterTargetsInitial()
void spell_ulduar_stone_grip_cast_target::FilterTargetsInitial |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
795 {
796
798
801 maxTargets = 3;
802
803
804 while (maxTargets < targets.size())
805 {
806 std::list<WorldObject*>::iterator itr = targets.begin();
807 advance(itr,
urand(0, targets.size() - 1));
808 targets.erase(itr);
809 }
810 }
std::uint32_t uint32
Definition Define.h:107
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
@ SPELL_STONE_GRIP_25
Definition boss_kologarn.cpp:77
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:411
Unit * GetCaster()
Definition SpellScript.cpp:401
Definition boss_kologarn.cpp:765
References SpellScript::GetCaster(), SpellScript::GetSpellInfo(), SPELL_STONE_GRIP_25, and urand().
Referenced by Register().
◆ Load()
bool spell_ulduar_stone_grip_cast_target::Load |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ PrepareSpellScript()
◆ Register()
void spell_ulduar_stone_grip_cast_target::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: