Esempio n. 1
0
        private static void Fight(string mode)
        {
            if ((comboQ || harassQ) && (mode == "Combo" || myHero.HealthPercent >= QHpA) && Q.IsReady())
            {
                Q2.CastOnBestTarget(Q2.Width / 2, false, true);
                return;
            }

            if ((comboE || harassE) && E.IsReady())
            {
                E.CastOnBestTarget(0, false, true);
                return;
            }

            if (mode != "Combo")
            {
                return;
            }

            if (comboW && W.IsReady())
            {
                if (myHero.HealthPercent >= ComboWHpU)
                {
                    if (!HaveWDmg)
                    {
                        W.Cast();
                        return;
                    }
                }
                else if (HaveWDmg)
                {
                    W.Cast();
                    return;
                }
            }
            if (!comboR || !R.IsReady() || myHero.LSIsDashing())
            {
                return;
            }
            var obj = GetRTarget;

            if ((obj.Count > 1 && obj.Any(i => R.IsKillable(i))) || obj.Any(i => i.HealthPercent < RHpU) ||
                obj.Count >= RCountA)
            {
                R.Cast();
            }
        }
Esempio n. 2
0
 private static void Fight(string mode)
 {
     if (GetValue <bool>(mode, "Q") &&
         (mode == "Combo" || Player.HealthPercent >= GetValue <Slider>(mode, "QHpA").Value) &&
         Q2.CastOnBestTarget(Q2.Width / 2, PacketCast, true).IsCasted())
     {
         return;
     }
     if (GetValue <bool>(mode, "E") && E.CastOnBestTarget(0, PacketCast, true).IsCasted())
     {
         return;
     }
     if (mode != "Combo")
     {
         return;
     }
     if (GetValue <bool>(mode, "W") && W.IsReady())
     {
         if (Player.HealthPercent >= GetValue <Slider>(mode, "WHpU").Value)
         {
             if (!HaveWDmg && W.Cast(PacketCast))
             {
                 return;
             }
         }
         else if (HaveWDmg && W.Cast(PacketCast))
         {
             return;
         }
     }
     if (GetValue <bool>(mode, "R") && R.IsReady() && !Player.IsDashing())
     {
         var obj = GetRTarget;
         if ((obj.Count > 1 && obj.Any(i => R.IsKillable(i))) ||
             obj.Any(i => i.HealthPercent < GetValue <Slider>(mode, "RHpU").Value) ||
             obj.Count >= GetValue <Slider>(mode, "RCountA").Value)
         {
             R.Cast(PacketCast);
         }
     }
 }
Esempio n. 3
0
 private void NormalCombo(string Mode)
 {
     if (GetValue <bool>(Mode, "Q") && (Mode == "Combo" || (Mode == "Harass" && Player.HealthPercentage() >= GetValue <Slider>(Mode, "QHpA").Value)) && Q2.CastOnBestTarget(0, PacketCast, true).IsCasted())
     {
         return;
     }
     if (GetValue <bool>(Mode, "E") && E.CastOnBestTarget(0, PacketCast).IsCasted())
     {
         return;
     }
     if (Mode == "Combo")
     {
         if (GetValue <bool>(Mode, "W") && W.IsReady())
         {
             if (Player.HealthPercentage() >= GetValue <Slider>("Clear", "WHpU").Value)
             {
                 if (!Player.HasBuff("AatroxWPower") && W.Cast(PacketCast))
                 {
                     return;
                 }
             }
             else if (Player.HasBuff("AatroxWPower") && W.Cast(PacketCast))
             {
                 return;
             }
         }
         if (GetValue <bool>(Mode, "R") && R.IsReady())
         {
             var Target = ObjectManager.Get <Obj_AI_Hero>().FindAll(i => i.IsValidTarget(R.Range));
             if (((Target.Count > 1 && Target.Count(i => CanKill(i, R)) > 0) || Target.Count >= GetValue <Slider>(Mode, "RCountA").Value || (Target.Count > 1 && Target.Count(i => i.HealthPercentage() < GetValue <Slider>(Mode, "RHpU").Value) > 0)) && R.Cast(PacketCast))
             {
                 return;
             }
         }
     }
 }