◆ HandleFinish()
| void spell_hun_volley_trigger::HandleFinish |
( |
| ) |
|
|
inlineprivate |
1179 {
1181 {
1182 return;
1183 }
1184
1186 if (!caster || !caster->
IsPlayer())
1187 {
1188 return;
1189 }
1190
1192 {
1193 if (
Unit* pet = *itr)
1194 {
1195 if (pet->IsAlive() && pet->IsCreature())
1196 {
1198 }
1199 }
1200 }
1201 }
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:2069
WorldObject * _target
Definition spell_hunter.cpp:1210
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 |
1169 {
1170
1171
1172 if (!targets.empty())
1173 {
1175 }
1176 }
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: