static Main()
{
wManager.Events.FightEvents.OnFightLoop += (unit, cancelable) => {
if (unit.IsValid && ObjectManager.Target.IsTargetingMyPet && ObjectManager.Target.GetDistance <= 5)
{
wManager.Wow.Helpers.Move.Backward(Move.MoveAction.PressKey, 1500);
}
};
}
1)not tested, but that doesn't check if they are an obstacle behind you.
2) you could do more properly by using
MovementManager.Go(PathFinder.FindPath(ObjectManager.Me.Position, new Vector3(ObjectManager.Me.Position.X,
ObjectManager.Me.Position.Y + 15,
ObjectManager.Me.Position.Z)));
For example