示例#1
0
        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));
        }
示例#2
0
        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);
        }
示例#3
0
 private static float GetEta(AxeObjectData axe, float movespeed)
 {
     return(Player.Instance.DistanceCached(axe.EndPosition) / movespeed);
 }