1070 {
1071 if (!
GetCaster()->ToPlayer()->GetGroup())
1072 {
1073 targets.clear();
1075 }
1076 else
1077 {
1079 std::list<Unit*> tempTargets;
1080 for (std::list<WorldObject*>::const_iterator itr = targets.begin(); itr != targets.end(); ++itr)
1082 tempTargets.push_back((*itr)->ToUnit());
1083
1084 if (tempTargets.empty())
1085 {
1086 targets.clear();
1088 return;
1089 }
1090
1092 targets.clear();
1093 targets.push_back(tempTargets.front());
1094 }
1095 }
@ TYPEMASK_UNIT
Definition ObjectGuid.h:49
@ TYPEMASK_PLAYER
Definition ObjectGuid.h:50
@ EFFECT_0
Definition SharedDefines.h:31
@ SPELLFAMILY_DRUID
Definition SharedDefines.h:3535
@ SPELL_FAILED_DONT_REPORT
Definition SharedDefines.h:976
@ SPELL_AURA_PERIODIC_HEAL
Definition SpellAuraDefines.h:71
Unit * GetExplTargetUnit()
Definition SpellScript.cpp:433
void FinishCast(SpellCastResult result)
Definition SpellScript.cpp:635
Unit * GetCaster()
Definition SpellScript.cpp:401
bool IsInRaidWith(Unit const *unit) const
Definition Unit.cpp:18849