◆ PrepareSpellScript()
◆ Register()
| void spell_gen_replenishment::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ RemoveInvalidTargets()
| void spell_gen_replenishment::RemoveInvalidTargets |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
4259 {
4260
4262 {
4263 if (caster->InArena())
4264 {
4265 targets.clear();
4266 targets.push_back(caster);
4267 return;
4268 }
4269 }
4270
4272
4273 uint8 const maxTargets = 10;
4274
4275 if (targets.size() > maxTargets)
4276 {
4278 targets.resize(maxTargets);
4279 }
4280 }
std::uint8_t uint8
Definition Define.h:109
@ POWER_MANA
Definition SharedDefines.h:280
Definition GridNotifiers.h:1705
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: