◆ PrepareSpellScript()
◆ Register()
| void spell_gen_replenishment::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ RemoveInvalidTargets()
| void spell_gen_replenishment::RemoveInvalidTargets |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
4342 {
4343
4345 {
4346 if (caster->InArena())
4347 {
4348 targets.clear();
4349 targets.push_back(caster);
4350 return;
4351 }
4352 }
4353
4355
4356 uint8 const maxTargets = 10;
4357
4358 if (targets.size() > maxTargets)
4359 {
4361 targets.resize(maxTargets);
4362 }
4363 }
std::uint8_t uint8
Definition Define.h:109
@ POWER_MANA
Definition SharedDefines.h:257
Definition GridNotifiers.h:1708
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: