private static bool CanPlayerCatchAxe(AxeObjectData axe) { if (!Settings.Axe.CatchAxes || !ValidOrbwalkerMode) { return(false); } if (!Settings.Axe.CatchAxesUnderTower && axe.EndPosition.IsVectorUnderEnemyTower()) { return(false); } return(Settings.Axe.CatchAxesNearEnemies || (axe.EndPosition.CountEnemiesInRange(550) <= 2)); }
private static bool CanPlayerCatchAxe(AxeObjectData axe) { if (!Settings.Axe.CatchAxes || (Settings.Axe.CatchAxesWhen == 0 && !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) && !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear)) || (Settings.Axe.CatchAxesWhen == 1 && !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))) { return(false); } if (!Settings.Axe.CatchAxesUnderTower && axe.EndPosition.IsVectorUnderEnemyTower()) { return(false); } return(Settings.Axe.CatchAxesNearEnemies || axe.EndPosition.CountEnemiesInRange(550) <= 2); }
private static float GetEta(AxeObjectData axe, float movespeed) { return(Player.Instance.DistanceCached(axe.EndPosition) / movespeed); }