◆ PrepareSpellScript()
◆ Register()
| void spell_item_fetch_ball::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ SelectTarget()
| void spell_item_fetch_ball::SelectTarget |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
1078 {
1080 for (std::list<WorldObject*>::const_iterator itr = targets.begin(); itr != targets.end(); ++itr)
1082 {
1083 if (creature->GetOwnerGUID() ==
GetCaster()->
GetOwnerGUID() && !creature->IsNonMeleeSpellCast(
false) &&
1084 creature->GetMotionMaster()->GetCurrentMovementGeneratorType() !=
POINT_MOTION_TYPE)
1085 {
1086 target = creature;
1087 break;
1088 }
1089 }
1090
1091 targets.clear();
1092 if (target)
1093 targets.push_back(target);
1094 }
@ POINT_MOTION_TYPE
Definition MotionMaster.h:48
Creature * ToCreature()
Definition Object.h:206
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: