◆ PrepareSpellScript()
◆ Register()
| void spell_item_fetch_ball::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ SelectTarget()
| void spell_item_fetch_ball::SelectTarget |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
1101 {
1103 for (std::list<WorldObject*>::const_iterator itr = targets.begin(); itr != targets.end(); ++itr)
1105 {
1106 if (creature->GetOwnerGUID() ==
GetCaster()->
GetOwnerGUID() && !creature->IsNonMeleeSpellCast(
false) &&
1107 creature->GetMotionMaster()->GetCurrentMovementGeneratorType() !=
POINT_MOTION_TYPE)
1108 {
1109 target = creature;
1110 break;
1111 }
1112 }
1113
1114 targets.clear();
1115 if (target)
1116 targets.push_back(target);
1117 }
@ POINT_MOTION_TYPE
Definition MotionMaster.h:48
Creature * ToCreature()
Definition Object.h:205
Unit * GetCaster()
Definition SpellScript.cpp:401
ObjectGuid GetOwnerGUID() const
Definition Unit.h:713
References SpellScript::GetCaster(), Unit::GetOwnerGUID(), POINT_MOTION_TYPE, and Object::ToCreature().
Referenced by Register().
The documentation for this class was generated from the following file: