◆ PrepareSpellScript()
◆ Register()
| void spell_gen_replenishment::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ RemoveInvalidTargets()
| void spell_gen_replenishment::RemoveInvalidTargets |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
4399 {
4400
4402 {
4403 if (caster->InArena())
4404 {
4405 targets.clear();
4406 targets.push_back(caster);
4407 return;
4408 }
4409 }
4410
4412
4413 uint8 const maxTargets = 10;
4414
4415 if (targets.size() > maxTargets)
4416 {
4418 targets.resize(maxTargets);
4419 }
4420 }
std::uint8_t uint8
Definition Define.h:109
@ POWER_MANA
Definition SharedDefines.h:257
Definition GridNotifiers.h:1743
Unit * GetCaster()
Definition SpellScript.cpp:401
References SpellScript::GetCaster(), and POWER_MANA.
Referenced by Register().
◆ Validate()
| bool spell_gen_replenishment::Validate |
( |
SpellInfo const * |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: