1067 if (!
GetCaster()->ToPlayer()->GetGroup())
1075 std::list<Unit*> tempTargets;
1076 for (std::list<WorldObject*>::const_iterator itr = targets.begin(); itr != targets.end(); ++itr)
1078 tempTargets.push_back((*itr)->ToUnit());
1080 if (tempTargets.empty())
1089 targets.push_back(target);
Unit * GetExplTargetUnit()
Definition: SpellScript.cpp:426
C::value_type const & SelectRandomContainerElement(C const &container)
Definition: Containers.h:68
Definition: SharedDefines.h:1297
void FinishCast(SpellCastResult result)
Definition: SpellScript.cpp:637
Definition: ObjectGuid.h:33
Unit * GetCaster()
Definition: SpellScript.cpp:394
bool IsInRaidWith(Unit const *unit) const
Definition: Unit.cpp:14391