◆ HandleFinish()
void spell_hun_volley_trigger::HandleFinish |
( |
| ) |
|
|
inlineprivate |
1120 {
1122 {
1123 return;
1124 }
1125
1127 if (!caster || !caster->
IsPlayer())
1128 {
1129 return;
1130 }
1131
1133 {
1134 if (
Unit* pet = *itr)
1135 {
1136 if (pet->IsAlive() && pet->IsCreature())
1137 {
1139 }
1140 }
1141 }
1142 }
bool IsPlayer() const
Definition Object.h:201
Unit * ToUnit()
Definition Object.h:210
Unit * GetCaster()
Definition SpellScript.cpp:401
ControlSet m_Controlled
Definition Unit.h:1990
WorldObject * _target
Definition spell_hunter.cpp:1151
References _target, SpellScript::GetCaster(), Object::IsPlayer(), Unit::m_Controlled, and Object::ToUnit().
Referenced by Register().
◆ PrepareSpellScript()
◆ Register()
void spell_hun_volley_trigger::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ SelectTarget()
void spell_hun_volley_trigger::SelectTarget |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
1110 {
1111
1112
1113 if (!targets.empty())
1114 {
1116 }
1117 }
References _target.
Referenced by Register().
◆ _target
WorldObject* spell_hun_volley_trigger::_target = nullptr |
|
private |
The documentation for this class was generated from the following file: