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