572 {
574 {
576 {
578 {
579 if (whelp->IsAlive() && !whelp->IsInCombat() && whelp->GetMotionMaster()->GetCurrentMovementGeneratorType() !=
HOME_MOTION_TYPE)
580 {
581 whelp->GetMotionMaster()->MovePoint(0,
me->
GetNearPosition(4.0f, whelp->GetOrientation()));
582 }
583 }
584 }
585 }
587 {
588 {
590 {
591 if (whelp->IsAlive() && !whelp->IsInCombat() && whelp->GetMotionMaster()->GetCurrentMovementGeneratorType() !=
HOME_MOTION_TYPE)
592 {
593 whelp->GetMotionMaster()->MoveTargetedHome();
594 }
595 }
596 }
597 }
598 else
599 {
601 }
602 }
@ GO_ACTIVATED
Definition GameObject.h:112
@ GO_JUST_DEACTIVATED
Definition GameObject.h:113
@ HOME_MOTION_TYPE
Definition MotionMaster.h:46
GameObject *const me
Definition GameObjectAI.h:35
Position GetNearPosition(float dist, float angle)
Definition Object.cpp:2795
void GetCreaturesWithEntryInRange(std::list< Creature * > &creatureList, float radius, uint32 entry)
Definition Object.cpp:3061
std::list< Creature * > creatureList
Definition zone_hellfire_peninsula.cpp:569
@ NPC_STONESCHYE_WHELP
Definition zone_hellfire_peninsula.cpp:557