private static void Flee() { if (MenuInit.FleeW && W.IsReady() && HeroManager.Enemies.Any( x => x.DistanceToPlayer() <= W.Range && !Riven.HaveShield(x)) && W.Cast(true)) { return; } if (MenuInit.FleeE && E.IsReady() && ((!Q.IsReady() && qStack == 0) || qStack == 2) && E.Cast(Me.Position.Extend(Game.CursorPos, E.Range), true)) { return; } if (MenuInit.FleeQ && Q.IsReady() && !Me.IsDashing()) { Q.Cast(Me.Position.Extend(Game.CursorPos, 350f), 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); } } }