Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Decorator(ctx => _fightTimer.ElapsedMilliseconds > 30 * 1000 && GigaRift.Me.CurrentTarget.MaxHealth < GigaRift.Me.MaxHealth * 2,
- new Sequence(
- new Action(ctx => Logging.Write("Warning: {0} is a bugged target.", GigaRift.Me.CurrentTarget.Name)),
- new Action(ctx => Navigator.MoveTo( Navigator.Mesh.GetNode(Navigator.Mesh.Search(GigaRift.Me.Location, 25f, float.MaxValue).FirstOrDefault()).Location)),
- new Action(ctx => GigaRift.Me.ClearTarget()),
- new Action(ctx => _fightTimer.Restart()))),
- // Are we in range?
- new Decorator(ctx => GigaRift.Me.CurrentTarget.Distance > MeleeDistance,
- new Sequence(
- new Action(ctx => Logging.Write("Move to {0} at {1} yards.", GigaRift.Me.CurrentTarget.Name, (int)GigaRift.Me.CurrentTarget.Distance)),
- new Action(ctx => Navigator.MoveTo(MoveLocation, "Combat: " + GigaRift.Me.CurrentTarget.Name)))),
Add Comment
Please, Sign In to add comment