◆ HandleFinish()
| void spell_hun_volley_trigger::HandleFinish |
( |
| ) |
|
|
inlineprivate |
1165 {
1167 {
1168 return;
1169 }
1170
1172 if (!caster || !caster->
IsPlayer())
1173 {
1174 return;
1175 }
1176
1178 {
1179 if (
Unit* pet = *itr)
1180 {
1181 if (pet->IsAlive() && pet->IsCreature())
1182 {
1184 }
1185 }
1186 }
1187 }
bool IsPlayer() const
Definition Object.h:207
Unit * ToUnit()
Definition Object.h:216
Unit * GetCaster()
Definition SpellScript.cpp:408
ControlSet m_Controlled
Definition Unit.h:2090
WorldObject * _target
Definition spell_hunter.cpp:1196
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 |
1155 {
1156
1157
1158 if (!targets.empty())
1159 {
1161 }
1162 }
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: