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); } } } } }
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(); } } }