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 RivenDoubleCastEvent(string spellName, bool isBurstMode) { var target = myTarget.IsValidTarget(600f) ? myTarget : TargetSelector.GetTarget(600); if (target != null && target.IsValidTarget()) { switch (spellName.ToLower()) { case "itemtiamatcleave": if (W.Ready && target.IsValidTarget(W.Range)) { W.Cast(); } else if (Q.Ready && target.IsValidTarget(400)) { MyExtraManager.CastQ(target); } break; case "rivenmartyr": if (isBurstMode) { if (R.Ready && isRActive) { R.Cast(target.ServerPosition); } else if (Q.Ready && target.IsValidTarget(400)) { MyExtraManager.CastQ(target); } } else { if (Q.Ready && target.IsValidTarget(400)) { MyExtraManager.CastQ(target); } else if (ComboMenu["FlowersRiven.ComboMenu.R"].As <MenuKeyBind>().Enabled&& R.Ready && !isRActive && ComboMenu["FlowersRiven.ComboMenu.RTargetFor" + target.ChampionName].Enabled) { MyExtraManager.R1Logic(target); } } break; case "rivenfeint": if (isBurstMode) { if (BurstMenu["FlowersRiven.BurstMenu.Mode"].As <MenuList>().Value == 0) { UseYoumuu(); if (R.Ready && !isRActive) { R.Cast(); } } } else { if (ComboMenu["FlowersRiven.ComboMenu.R"].As <MenuKeyBind>().Enabled&& R.Ready && !isRActive && target.IsValidTarget(500f) && ComboMenu["FlowersRiven.ComboMenu.RTargetFor" + target.ChampionName].Enabled) { MyExtraManager.R1Logic(target); } } break; case "rivenfengshuiengine": if (!isBurstMode) { if (ComboMenu["FlowersRiven.ComboMenu.WCancel"].Enabled && W.Ready && target.IsValidTarget(W.Range)) { W.Cast(); } } break; case "rivenizunablade": if (Q.Ready && target.IsValidTarget(400)) { Q.Cast(target.ServerPosition); } break; default: return; } } }
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); } }