570 {
572 {
574 {
576 {
577 if (whelp->IsAlive() && !whelp->IsInCombat() && whelp->GetMotionMaster()->GetCurrentMovementGeneratorType() !=
HOME_MOTION_TYPE)
578 {
579 whelp->GetMotionMaster()->MovePoint(0,
me->
GetNearPosition(4.0f, whelp->GetOrientation()));
580 }
581 }
582 }
583 }
585 {
586 {
588 {
589 if (whelp->IsAlive() && !whelp->IsInCombat() && whelp->GetMotionMaster()->GetCurrentMovementGeneratorType() !=
HOME_MOTION_TYPE)
590 {
591 whelp->GetMotionMaster()->MoveTargetedHome();
592 }
593 }
594 }
595 }
596 else
597 {
599 }
600 }
@ 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:2746
void GetCreaturesWithEntryInRange(std::list< Creature * > &creatureList, float radius, uint32 entry)
Definition Object.cpp:3012
std::list< Creature * > creatureList
Definition zone_hellfire_peninsula.cpp:567
@ NPC_STONESCHYE_WHELP
Definition zone_hellfire_peninsula.cpp:555