private static void ComboAfterAttackEvent(AttackableUnit orbTarget) { try { Obj_AI_Hero target = null; if (myTarget.IsValidTarget(600)) { target = myTarget; } else if (orbTarget is Obj_AI_Hero) { target = (Obj_AI_Hero)orbTarget; } if (target != null && target.IsValidTarget(400)) { if (Q.Ready && target.IsValidTarget(400)) { MyExtraManager.CastQ(target); return; } if (ComboMenu["FlowersRiven.ComboMenu.RMode"].As <MenuList>().Value != 3 && R.Ready && isRActive && qStack == 2 && Q.Ready && ComboMenu["FlowersRiven.ComboMenu.RMode"].As <MenuList>().Value != 1 && MyExtraManager.R2Logic(target)) { return; } if (ComboMenu["FlowersRiven.ComboMenu.WCancel"].Enabled && W.Ready && target.IsValidTarget(W.Range) && !target.HaveShiled()) { W.Cast(); return; } if (!Q.Ready && !W.Ready && E.Ready && target.IsValidTarget(400)) { E.Cast(target.ServerPosition); return; } if (ComboMenu["FlowersRiven.ComboMenu.R"].As <MenuKeyBind>().Enabled&& R.Ready && !isRActive && ComboMenu["FlowersRiven.ComboMenu.RTargetFor" + target.ChampionName].Enabled) { MyExtraManager.R1Logic(target); } } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.ComboAfterAttackEvent." + ex); } }
private static void ComboEvent() { try { var target = TargetSelector.GetTarget(800); if (target != null && target.IsValidTarget(800f)) { if (ComboMenu["FlowersRiven.ComboMenu.Ignite"].Enabled && IgniteSlot != SpellSlot.Unknown && Ignite.Ready && target.IsValidTarget(600) && (target.Health < MyExtraManager.GetComboDamage(target) && target.IsValidTarget(400) || target.Health < Me.GetIgniteDamage(target))) { Ignite.Cast(target); } if (ComboMenu["FlowersRiven.ComboMenu.Youmuu"].Enabled) { UseYoumuu(); } if (ComboMenu["FlowersRiven.ComboMenu.R"].As <MenuKeyBind>().Enabled&& R.Ready && !isRActive && ComboMenu["FlowersRiven.ComboMenu.RTargetFor" + target.ChampionName].Enabled && target.Health <= MyExtraManager.GetComboDamage(target) * 1.3 && target.IsValidTarget(600f)) { MyExtraManager.R1Logic(target); } if (ComboMenu["FlowersRiven.ComboMenu.RMode"].As <MenuList>().Value != 3 && R.Ready && isRActive && ComboMenu["FlowersRiven.ComboMenu.RTargetFor" + target.ChampionName].Enabled) { MyExtraManager.R2Logic(target); } if (ComboMenu["FlowersRiven.ComboMenu.QGapcloser"].Enabled && Q.Ready && Game.TickCount - lastQTime > 1200 && !Me.IsDashing() && target.IsValidTarget(500f) && target.DistanceToPlayer() > Me.GetFullAttackRange(target) + 50 && Prediction.GetPrediction(target, 0.25f).UnitPosition.DistanceToPlayer() > Me.GetFullAttackRange(target) + 50) { Q.Cast(target); return; } if (ComboMenu["FlowersRiven.ComboMenu.EGapcloser"].Enabled && E.Ready && target.IsValidTarget(600) && target.DistanceToPlayer() > Me.GetFullAttackRange(target) + 50) { E.Cast(target.ServerPosition); } if (W.Ready && target.IsValidTarget(W.Range)) { if (qStack == 0 && W.Cast()) { return; } if (Q.Ready && qStack > 1 && W.Cast()) { return; } if (Me.HasBuff("RivenFeint") && W.Cast()) { return; } if (!target.IsFacing(Me)) { W.Cast(); } } } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.ComboEvent." + ex); } }