566 {
568 {
570 {
572 {
573 if (whelp->IsAlive() && !whelp->IsInCombat() && whelp->GetMotionMaster()->GetCurrentMovementGeneratorType() !=
HOME_MOTION_TYPE)
574 {
575 whelp->GetMotionMaster()->MovePoint(0,
me->
GetNearPosition(4.0f, whelp->GetOrientation()));
576 }
577 }
578 }
579 }
581 {
582 {
584 {
585 if (whelp->IsAlive() && !whelp->IsInCombat() && whelp->GetMotionMaster()->GetCurrentMovementGeneratorType() !=
HOME_MOTION_TYPE)
586 {
587 whelp->GetMotionMaster()->MoveTargetedHome();
588 }
589 }
590 }
591 }
592 else
593 {
595 }
596 }
@ 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:563
@ NPC_STONESCHYE_WHELP
Definition zone_hellfire_peninsula.cpp:551