◆ HandleFinish()
void spell_hun_volley_trigger::HandleFinish |
( |
| ) |
|
|
inlineprivate |
1123 {
1125 {
1126 return;
1127 }
1128
1130 if (!caster || !caster->
IsPlayer())
1131 {
1132 return;
1133 }
1134
1136 {
1137 if (
Unit* pet = *itr)
1138 {
1139 if (pet->IsAlive() && pet->IsCreature())
1140 {
1142 }
1143 }
1144 }
1145 }
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:1981
WorldObject * _target
Definition spell_hunter.cpp:1154
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 |
1113 {
1114
1115
1116 if (!targets.empty())
1117 {
1119 }
1120 }
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: