private static void JungleClear(AttackableUnit tar) { var target = tar as Obj_AI_Minion; if (target != null && target.IsValidTarget(400) && target.Health > Me.GetAutoAttackDamage(target, true) && !target.Name.Contains("Plant")) { if (MenuInit.JungleClearItem && Riven.UseItem()) { return; } if (MenuInit.JungleClearQ && Q.IsReady() && target.IsValidTarget(400) && Riven.CastQ(target)) { return; } if (MenuInit.JungleClearW && W.IsReady() && target.IsValidTarget(W.Range) && W.Cast(true)) { return; } if (MenuInit.JungleClearE && E.IsReady() && target.IsValidTarget(400)) { E.Cast(Game.CursorPos, true); } } }
private static void EQFlashBurst(AIHeroClient target) { if (Riven.UseItem()) { return; } if (R.IsReady() && isRActive) { var rPred = R.GetPrediction(target, true); if (rPred.Hitchance >= HitChance.VeryHigh && R.Cast(rPred.CastPosition, true)) { return; } } if (Q.IsReady() && Riven.CastQ(target)) { return; } if (W.IsReady() && target.IsValidTarget(W.Range) && W.Cast(true)) { return; } if (E.IsReady()) { E.Cast(target.Position, true); } }
private static void EQFlashBurst(AIHeroClient target) { if (MenuInit.BurstDot && IgniteSlot != SpellSlot.Unknown && Ignite.IsReady() && Ignite.Cast(target, true) == Spell.CastStates.SuccessfullyCasted) { return; } if (target.IsValidTarget(W.Range) && W.Cast(true)) { return; } if (MenuInit.BurstFlash && FlashSlot != SpellSlot.Unknown && Flash.IsReady()) { if (qStack < 2 && Utils.TickCount - lastQTime >= 850 && Q.Cast(Game.CursorPos, true)) { return; } if (qStack == 2 && E.IsReady() && R.IsReady() && !isRActive && W.IsReady() && target.IsValidTarget(E.Range + Flash.Range + Q.Range - 100)) { E.Cast(target.Position, true); LeagueSharp.Common.Utility.DelayAction.Add(10 + Game.Ping, () => R.Cast(true)); LeagueSharp.Common.Utility.DelayAction.Add(50 + Game.Ping, () => Flash.Cast(target.Position, true)); LeagueSharp.Common.Utility.DelayAction.Add(61 + Game.Ping, () => Riven.UseItem()); LeagueSharp.Common.Utility.DelayAction.Add(62 + Game.Ping, () => Q.Cast(target.Position, true)); LeagueSharp.Common.Utility.DelayAction.Add(70 + Game.Ping, () => W.Cast(true)); LeagueSharp.Common.Utility.DelayAction.Add(71 + Game.Ping, () => R.Cast(target.Position, true)); } } else if (target.IsValidTarget(E.Range + Q.Range + Q.Range + Q.Range)) { if (qStack < 2 && Utils.TickCount - lastQTime >= 850 && Q.Cast(Game.CursorPos, true)) { return; } if (qStack == 2 && E.IsReady() && R.IsReady() && !isRActive && W.IsReady() && target.IsValidTarget(E.Range + Q.Range - 100)) { E.Cast(target.Position, true); LeagueSharp.Common.Utility.DelayAction.Add(10 + Game.Ping, () => R.Cast(true)); LeagueSharp.Common.Utility.DelayAction.Add(50 + Game.Ping, () => Q.Cast(target.Position, true)); LeagueSharp.Common.Utility.DelayAction.Add(61 + Game.Ping, () => Riven.UseItem()); LeagueSharp.Common.Utility.DelayAction.Add(62 + Game.Ping, () => W.Cast(true)); LeagueSharp.Common.Utility.DelayAction.Add(70 + Game.Ping, () => R.Cast(target.Position, true)); } } }
private static void Combo(AttackableUnit tar) { AIHeroClient target = null; if (myTarget.IsValidTarget()) { target = myTarget; } else if (tar is AIHeroClient) { target = (AIHeroClient)tar; } if (target != null && target.IsValidTarget(400)) { if (MenuInit.ComboItem && Riven.UseItem()) { return; } if (MenuInit.ComboR2 != 3 && R.IsReady() && isRActive && qStack == 2 && Q.IsReady() && Riven.R2Logic(target)) { return; } if (Q.IsReady() && target.IsValidTarget(400)) { Riven.CastQ(target); return; } if (MenuInit.ComboW && W.IsReady() && target.IsValidTarget(W.Range) && !Riven.HaveShield(target)) { W.Cast(true); return; } if (MenuInit.ComboE && !Q.IsReady() && !W.IsReady() && E.IsReady() && target.IsValidTarget(400)) { E.Cast(target.Position, true); return; } if (MenuInit.ComboR && R.IsReady() && !isRActive) { Riven.R1Logic(target); } } }
private static void LaneClear(AttackableUnit tar) { var target = tar as Obj_AI_Minion; if (target != null && target.IsValidTarget()) { if (MenuInit.LaneClearItem && MinionManager.GetMinions(Me.Position, 400).Count >= 2 && Riven.UseItem()) { return; } if (MenuInit.LaneClearQ && Q.IsReady()) { var minions = MinionManager.GetMinions(target.Position, 400); if (minions.Count >= 2) { var qFarm = MinionManager.GetBestCircularFarmLocation(minions.Select(x => x.Position.To2D()).ToList(), Q.Width, Q.Range); if (qFarm.MinionsHit >= 2) { Q.Cast(qFarm.Position, true); } } } } }