コード例 #1
0
 private static void Game_OnUpdate(EventArgs args)
 {
     if (BadaoMainVariables.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.LaneClear)
     {
         return;
     }
     if (BadaoMainVariables.R.Instance.SData.Name == "JhinRShot")
     {
         return;
     }
     if (!BadaoJhinHelper.CanLaneClearMana())
     {
         return;
     }
     if (BadaoJhinHelper.UseQLane())
     {
         var info   = BadaoJhinHelper.GetQInfo();
         var target = info.Where(x => x.BounceTargets.Count() >= 3)
                      .OrderByDescending(x => x.DeathCount).FirstOrDefault();
         if (target != null)
         {
             BadaoMainVariables.Q.Cast(target.QTarget);
         }
     }
 }