示例#1
0
        public static void ExecuteLogic()
        {
            if (Variables.spells[SpellSlot.R].IsEnabledAndReady())
            {
                if (KogUtils.GetRCount() <
                    MenuExtensions.GetItemValue <Slider>(
                        $"iseriesr.kogmaw.{Variables.Orbwalker.ActiveMode.ToString().ToLower()}.r.limit").Value)
                {
                    var rTarget = TargetSelector.GetTarget(Variables.spells[SpellSlot.R].Range, TargetSelector.DamageType.Magical);
                    if (rTarget.IsValidTarget())
                    {
                        var prediction = Variables.spells[SpellSlot.R].GetPrediction(rTarget);

                        if (prediction.Hitchance >= HitChance.Medium)
                        {
                            Variables.spells[SpellSlot.R].Cast(prediction.CastPosition);
                        }
                    }
                }
            }
        }
示例#2
0
文件: KogW.cs 项目: wade1990/PortAIO
 public static void ExecuteLaneclear()
 {
     if (Variables.spells[SpellSlot.W].IsEnabledAndReady())
     {
         var minionsInRange = GameObjects.EnemyMinions.Where(m => m.IsValidTarget(KogUtils.GetWRange()));
         if (minionsInRange.Count() > 6)
         {
             Variables.spells[SpellSlot.W].Cast();
         }
     }
 }