◆ FilterTargetsInitial()
| void spell_ulduar_stone_grip_cast_target::FilterTargetsInitial |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
772 {
773
775
777
778
779 while (maxTargets < targets.size())
780 {
781 std::list<WorldObject*>::iterator itr = targets.begin();
782 advance(itr,
urand(0, targets.size() - 1));
783 targets.erase(itr);
784 }
785 }
std::uint32_t uint32
Definition Define.h:107
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
@ SPELL_STONE_GRIP
Definition boss_kologarn.cpp:68
uint32 Id
Definition SpellInfo.h:320
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:411
Unit * GetCaster()
Definition SpellScript.cpp:401
Definition boss_kologarn.cpp:742
References SpellScript::GetCaster(), SpellScript::GetSpellInfo(), SpellInfo::Id, SPELL_STONE_GRIP, 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: