568 {
570 {
572 {
574 {
575 if (whelp->IsAlive() && !whelp->IsInCombat() && whelp->GetMotionMaster()->GetCurrentMovementGeneratorType() !=
HOME_MOTION_TYPE)
576 {
577 whelp->GetMotionMaster()->MovePoint(0,
me->
GetNearPosition(4.0f, whelp->GetOrientation()));
578 }
579 }
580 }
581 }
583 {
584 {
586 {
587 if (whelp->IsAlive() && !whelp->IsInCombat() && whelp->GetMotionMaster()->GetCurrentMovementGeneratorType() !=
HOME_MOTION_TYPE)
588 {
589 whelp->GetMotionMaster()->MoveTargetedHome();
590 }
591 }
592 }
593 }
594 else
595 {
597 }
598 }
@ GO_ACTIVATED
Definition: GameObject.h:114
@ GO_JUST_DEACTIVATED
Definition: GameObject.h:115
@ HOME_MOTION_TYPE
Definition: MotionMaster.h:44
@ NPC_STONESCHYE_WHELP
Definition: zone_hellfire_peninsula.cpp:553
GameObject *const me
Definition: GameObjectAI.h:36
Definition: Creature.h:46
Position GetNearPosition(float dist, float angle)
Definition: Object.cpp:2716
void GetCreaturesWithEntryInRange(std::list< Creature * > &creatureList, float radius, uint32 entry)
Definition: Object.cpp:3040
std::list< Creature * > creatureList
Definition: zone_hellfire_peninsula.cpp:565