◆ PrepareSpellScript()
◆ Register()
| void spell_gen_replenishment::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ RemoveInvalidTargets()
| void spell_gen_replenishment::RemoveInvalidTargets |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
4377 {
4378
4380 {
4381 if (caster->InArena())
4382 {
4383 targets.clear();
4384 targets.push_back(caster);
4385 return;
4386 }
4387 }
4388
4390
4391 uint8 const maxTargets = 10;
4392
4393 if (targets.size() > maxTargets)
4394 {
4396 targets.resize(maxTargets);
4397 }
4398 }
std::uint8_t uint8
Definition Define.h:109
@ POWER_MANA
Definition SharedDefines.h:257
Definition GridNotifiers.h:1737
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: