示例#1
0
        static void Game_OnUpdate(EventArgs args)
        {
            if (Player.IsDead)
            {
                return;
            }

            E.Range = Orbwalking.GetRealAutoAttackRange(Player);
            R.Range = Orbwalking.GetRealAutoAttackRange(Player);

            if (Orbwalking.CanMove(10))
            {
                AIO_Func.SC(E); //평타-e말고 그냥 e
            }
            AIO_Func.FleeToPosition(W);
            foreach (var target in HeroManager.Enemies.Where(x => AIO_Func.CanHit(W, x, 0) && x.HasBuff2("tristanaecharge") && (AIO_Func.getBuffInstance(x, "tristanaechargesound").EndTime - Game.ClockTime) > 0.59 && ((float)AIO_Func.getBuffInstance(x, "tristanaecharge").Count == 3 && (AIO_Func.getBuffInstance(x, "tristanaechargesound").EndTime - Game.ClockTime) < 0.8 || (float)AIO_Func.getBuffInstance(x, "tristanaecharge").Count == 4)))
            {
                if (target != null && W.IsReady())
                {
                    AIO_Func.SC(W);
                }
            }
            if (AIO_Menu.Champion.Misc.getBoolValue("KillstealW"))
            {
                KillstealW();
            }
            if (AIO_Menu.Champion.Misc.getBoolValue("KillstealE"))
            {
                KillstealE();
            }
            if (AIO_Menu.Champion.Misc.getBoolValue("KillstealR"))
            {
                KillstealR();
            }
        }
示例#2
0
 static void KillstealR()
 {
     foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
     {
         if (R.IsReady() && target != null)
         {
             var  Buff = (target.HasBuff2("tristanaechargesound") ? AIO_Func.getBuffInstance(target, "tristanaecharge") : null);
             var  BC   = Buff == null ? 0 : Buff.Count;
             bool EK   = (target.HasBuff2("tristanaechargesound") && (float)BC > 0 && AIO_Func.isKillable(target, E.GetDamage2(target) * (((float)BC - 1) * 0.30f + 1f)) || !target.HasBuff2("tristanaechargesound"));
             if ((AIO_Menu.Champion.Misc.getBoolValue("KillstealW") ? (!AIO_Func.CanHit(W, target, 0) || !W.IsReady()) : R.IsReady()) && R.CanCast(target) && Buff != null && (float)BC > 0 && target.HasBuff2("tristanaechargesound") && (AIO_Func.getBuffInstance(target, "tristanaechargesound").EndTime - Game.ClockTime) > 0.3 && AIO_Func.isKillable(target, R.GetDamage2(target) + E.GetDamage2(target) * (((float)BC - 1) * 0.30f + 1f)) && !EK)
             {
                 R.Cast(target);
             }
             else if ((AIO_Menu.Champion.Misc.getBoolValue("KillstealW") ? (!AIO_Func.CanHit(W, target, 0) || !W.IsReady()) : R.IsReady()) && R.CanCast(target) && AIO_Func.isKillable(target, R) && !EK)
             {
                 R.Cast(target);
             }
         }
     }
 }