예제 #1
0
        private float GetComboDamage(Obj_AI_Base enemy)
        {
            var damage = 0d;

            if (R.IsReady())
            {
                damage += player.GetSpellDamage(enemy, SpellSlot.R);
            }

            if (DFG.IsReady())
            {
                damage += player.GetItemDamage(enemy, Damage.DamageItems.Dfg) / 1.2;
            }

            if (W.IsReady())
            {
                damage += player.GetSpellDamage(enemy, SpellSlot.W);
            }

            if (Q.IsReady())
            {
                damage += player.GetSpellDamage(enemy, SpellSlot.Q);
            }

            if (E.IsReady())
            {
                damage += player.GetSpellDamage(enemy, SpellSlot.E);
            }


            return((float)damage * (DFG.IsReady() ? 1.2f : 1));
        }
예제 #2
0
 public static bool UseYoumuu(Obj_AI_Base target)
 {
     if (Settings.UseGhostblade && YOUMUU.IsReady() && target.IsValidTarget(Orbwalking.GetRealAutoAttackRange(player) + 50))
     {
         return(YOUMUU.Cast());
     }
     return(false);
 }
 public static bool UseYoumuu(Obj_AI_Base target)
 {
     if (Config.BoolLinks["itemsYoumuu"].Value && YOUMUU.IsReady() && target.IsValidTarget(Orbwalking.GetRealAutoAttackRange(player) + 50))
     {
         return(YOUMUU.Cast());
     }
     return(false);
 }
예제 #4
0
 public static bool UseRanduin(Obj_AI_Hero target)
 {
     if (Config.BoolLinks["itemsRanduin"].Value && RANDUIN.IsReady() && target.IsValidTarget(RANDUIN.Range))
     {
         return(RANDUIN.Cast());
     }
     return(false);
 }
예제 #5
0
        public static bool UseRanduin(Obj_AI_Base target)
        {
            if (Config.BoolLinks["itemsRanduin"].Value && RANDUIN.IsReady() && target.IsValidTarget(RANDUIN.Range))
            {
                return(RANDUIN.Cast());
            }

            // No item was used/found
            return(false);
        }
예제 #6
0
 public static bool UseHydra(Obj_AI_Base target)
 {
     if (Config.BoolLinks["itemsHydra"].Value && HYDRA.IsReady() && target.IsValidTarget(HYDRA.Range))
     {
         return(HYDRA.Cast());
     }
     else if (Config.BoolLinks["itemsTiamat"].Value && TIAMAT.IsReady() && target.IsValidTarget(TIAMAT.Range))
     {
         return(TIAMAT.Cast());
     }
     return(false);
 }
예제 #7
0
 public static bool UseBotrk(Obj_AI_Hero target)
 {
     if (Settings.UseBotrk && BOTRK.IsReady() && target.IsValidTarget(BOTRK.Range) &&
         player.Health + player.GetItemDamage(target, Damage.DamageItems.Botrk) < player.MaxHealth)
     {
         return(BOTRK.Cast(target));
     }
     else if (Settings.UseCutlass && CUTLASS.IsReady() && target.IsValidTarget(CUTLASS.Range))
     {
         return(CUTLASS.Cast(target));
     }
     return(false);
 }
 public static bool UseBotrk(Obj_AI_Hero target)
 {
     if (Config.BoolLinks["itemsBotrk"].Value && BOTRK.IsReady() && target.IsValidTarget(BOTRK.Range) &&
         player.Health + player.GetItemDamage(target, Damage.DamageItems.Botrk) < player.MaxHealth)
     {
         return(BOTRK.Cast(target));
     }
     else if (Config.BoolLinks["itemsCutlass"].Value && CUTLASS.IsReady() && target.IsValidTarget(CUTLASS.Range))
     {
         return(CUTLASS.Cast(target));
     }
     return(false);
 }
예제 #9
0
        public static void Items()
        {
            var target = TargetSelector.GetTarget(1500f, TargetSelector.DamageType.Physical);

            if (menu.Item("reksai.items.hydra").GetValue <bool>())
            {
                if (LeagueSharp.Common.Items.HasItem(Hydra.Id, Player) &&
                    Hydra.IsReady() &&
                    target.IsValidTarget(Hydra.Range))
                {
                    Hydra.Cast();
                }
                else if (LeagueSharp.Common.Items.HasItem(Tiamat.Id, Player) &&
                         Tiamat.IsReady() &&
                         target.IsValidTarget(Tiamat.Range))
                {
                    Tiamat.Cast();
                }
            }
            if (menu.Item("reksai.items.botrk").GetValue <bool>())
            {
                if (LeagueSharp.Common.Items.HasItem(BotRK.Id, Player) &&
                    BotRK.IsReady() &&
                    target.IsValidTarget(BotRK.Range))
                {
                    BotRK.Cast(target);
                }
                else if (LeagueSharp.Common.Items.HasItem(Cutlass.Id, Player) &&
                         Cutlass.IsReady() &&
                         target.IsValidTarget(Cutlass.Range))
                {
                    Cutlass.Cast(target);
                }
            }
            if (menu.Item("reksai.items.omen").GetValue <bool>())
            {
                if (LeagueSharp.Common.Items.HasItem(Omen.Id, Player) &&
                    Omen.IsReady() &&
                    target.IsValidTarget(Omen.Range))
                {
                    if (Player.IsFacing(target) &&
                        !target.IsFacing(Player) ||
                        !Player.IsFacing(target) &&
                        target.IsFacing(Player))
                    {
                        Omen.Cast();
                    }
                }
            }
        }
예제 #10
0
        public static bool UseHydraOrTiamat(Obj_AI_Base target)
        {
            // Cast Hydra
            if (Config.BoolLinks["itemsHydra"].Value && HYDRA.IsReady() && target.IsValidTarget(HYDRA.Range))
            {
                return(HYDRA.Cast());
            }
            // Cast Tiamat
            else if (Config.BoolLinks["itemsTiamat"].Value && TIAMAT.IsReady() && target.IsValidTarget(TIAMAT.Range))
            {
                return(TIAMAT.Cast());
            }

            // No item was used/found
            return(false);
        }
예제 #11
0
        public static bool UseBotrkOrCutlass(Obj_AI_Base target)
        {
            // Blade of the Ruined King
            if (Config.BoolLinks["itemsBotrk"].Value && BOTRK.IsReady() && target.IsValidTarget(BOTRK.Range) &&
                (player.Health + player.GetItemDamage(target, Damage.DamageItems.Botrk) < player.MaxHealth ||
                 target.Health < player.GetItemDamage(target, Damage.DamageItems.Botrk)))
            {
                return(BOTRK.Cast(target));
            }
            else if (Config.BoolLinks["itemsCutlass"].Value && CUTLASS.IsReady() && target.IsValidTarget(CUTLASS.Range))
            {
                return(CUTLASS.Cast(target));
            }

            // No item was used/found
            return(false);
        }
예제 #12
0
        public static bool UseRevealingOrb(Vector3 target)
        {
            if (Config.BoolLinks["itemsOrb"].Value)
            {
                // Scrying Orb
                if (BLUE_ORB1.IsReady() && BLUE_ORB1.IsInRange(target))
                {
                    return(BLUE_ORB1.Cast(target));
                }
                // Farsight Orb
                else if (BLUE_ORB2.IsReady() && BLUE_ORB2.IsInRange(target))
                {
                    return(BLUE_ORB2.Cast(target));
                }
            }

            return(false);
        }
예제 #13
0
        public static bool UseDfg(Obj_AI_Hero target)
        {
            if (Config.BoolLinks["itemsDfg"].Value)
            {
                // DFG
                if (DFG.IsReady() && target.IsValidTarget(DFG.Range))
                {
                    return(DFG.Cast(target));
                }
                // Blackfire
                else if (BLACKFIRE_TORCH.IsReady() && target.IsValidTarget(BLACKFIRE_TORCH.Range))
                {
                    return(BLACKFIRE_TORCH.Cast(target));
                }
            }

            // No item was used/found
            return(false);
        }