Example #1
0
        public static bool IsInFountain(Vector3 position, GameObjectTeam team)
        {
            float fountainRange = 1050;

            if (Game.MapId == GameMapId.SummonersRift)
            {
                Vector3 vec3 = (team == GameObjectTeam.Order) ? new Vector3(363, 426, 182) : new Vector3(14340, 14390, 172);
                return position.IsInRange(vec3, fountainRange);
            }
            return false;
        }
Example #2
0
 private bool intowerrange(Vector3 pos)
 {
     foreach (var t in EntityManager.Turrets.Enemies)
     {
         if (pos.IsInRange(t, 775))
         {
             return true;
         }
     }
     return false;
 }
Example #3
0
 protected AIHeroClient FindBestKillableTarget(Vector3 source, float range)
 {
     return UnitManager.ValidEnemyHeroes.Where(h => source.IsInRange(h, range) && R.GetDamage(h) * (Stacks + 2) >= h.TotalShieldHealth()).OrderByDescending(h => (h.Health - R.GetDamage(h)) * Stacks / h.MaxHealth).FirstOrDefault();
 }
Example #4
0
        public static void RevealCast(Vector3 vector3)
        {
            if (Sweeping_Lens_Trinket.IsOwned() && Sweeping_Lens_Trinket.IsReady() && vector3.IsInRange(Player.Instance, Sweeping_Lens_Trinket.Range))
            {
                if (Sweeping_Lens_Trinket.Cast(vector3))
                {
                    return;
                }
            }

            if (Oracle_Alteration.IsOwned() && Oracle_Alteration.IsReady() && vector3.IsInRange(Player.Instance, Oracle_Alteration.Range))
            {
                if (Oracle_Alteration.Cast(vector3))
                {
                    return;
                }
            }

            if (Vision_Ward.IsOwned() && Vision_Ward.IsReady() && vector3.IsInRange(Player.Instance, Oracle_Alteration.Range))
            {
                Vision_Ward.Cast(Player.Instance.ServerPosition);
            }
        }