909 {
911 for (std::list<WorldObject*>::const_iterator itr = targets.begin(); itr != targets.end(); ++itr)
913 {
915 creature->GetMotionMaster()->GetCurrentMovementGeneratorType() !=
POINT_MOTION_TYPE)
916 {
917 target = creature;
918 break;
919 }
920 }
921
922 targets.clear();
923 if (target)
924 targets.push_back(target);
925 }
@ POINT_MOTION_TYPE
Definition: MotionMaster.h:46
Definition: Creature.h:46
Creature * ToCreature()
Definition: Object.h:202
bool IsNonMeleeSpellCast(bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const
Definition: Unit.cpp:4081
Unit * GetCaster()
Definition: SpellScript.cpp:401