◆ HandleFinish()
void spell_hun_volley_trigger::HandleFinish |
( |
| ) |
|
|
inlineprivate |
1124 {
1126 {
1127 return;
1128 }
1129
1131 if (!caster || !caster->
IsPlayer())
1132 {
1133 return;
1134 }
1135
1137 {
1138 if (
Unit* pet = *itr)
1139 {
1140 if (pet->IsAlive() && pet->IsCreature())
1141 {
1143 }
1144 }
1145 }
1146 }
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:1155
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 |
1114 {
1115
1116
1117 if (!targets.empty())
1118 {
1120 }
1121 }
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: