◆ HandleFinish()
void spell_hun_volley_trigger::HandleFinish |
( |
| ) |
|
|
inlineprivate |
1126 {
1128 {
1129 return;
1130 }
1131
1133 if (!caster || !caster->
IsPlayer())
1134 {
1135 return;
1136 }
1137
1139 {
1140 if (
Unit* pet = *itr)
1141 {
1142 if (pet->IsAlive() && pet->IsCreature())
1143 {
1145 }
1146 }
1147 }
1148 }
bool IsPlayer() const
Definition Object.h:200
Unit * ToUnit()
Definition Object.h:209
Unit * GetCaster()
Definition SpellScript.cpp:401
ControlSet m_Controlled
Definition Unit.h:1990
WorldObject * _target
Definition spell_hunter.cpp:1157
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 |
1116 {
1117
1118
1119 if (!targets.empty())
1120 {
1122 }
1123 }
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: