public override void OnLaneClear() { var laneclear = Features.First(it => it.NameFeature == "Lane Clear"); var itens = new ItemController(); bool UseItem = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, 400).Count() >= 3; if (UseItem) itens.CastTiamatHydra(); if (Player.ManaPercent <= laneclear.SliderValue("laneclear.mana%") || !Q.IsReady()) return; if (laneclear.IsChecked("laneclear.q")) { IEnumerable<Obj_AI_Minion> ListMinions = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.ServerPosition, 1000).OrderBy(minion => minion.Distance(Player)); int hits = new int(); if (ListMinions.Any() && ListMinions.Count() >= laneclear.SliderValue("laneclear.q.minminions")) { if (!(ListMinions.First().Distance(Player) > Q.Range)) { hits += 1; for (int i = 0; i < ListMinions.Count(); i++) { if (i + 1 == ListMinions.Count()) break; else if (ListMinions.ElementAt(i).Distance(ListMinions.ElementAt(i + 1)) <= 300) { hits += 1; } else break; } if (hits >= laneclear.SliderValue("laneclear.q.minminions")) { if (laneclear.IsChecked("laneclear.q.jimwd")) { if ((DamageUtil.GetSpellDamage(ListMinions.First(), SpellSlot.Q) > ListMinions.First().Health || DamageUtil.GetSpellDamage(ListMinions.ElementAt(1), SpellSlot.Q) > ListMinions.ElementAt(1).Health)) Q.Cast(ListMinions.First()); } else { Q.Cast(ListMinions.First()); } } } } } return; }
public override void OnJungleClear() { var jungleclear = Features.First(it => it.NameFeature == "Jungle Clear"); if (Player.ManaPercent < jungleclear.SliderValue("jungleclear.mana%")) return; if (E.IsReady() && EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Player.GetAutoAttackRange()).Any() && jungleclear.IsChecked("jungleclear.e")) E.Cast(); var itens = new ItemController(); bool UseItem = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, 400).Count() >= 1; if (UseItem) itens.CastTiamatHydra(); return; }
/* Spells[0] = Q - Useless Spells[1] = W Spells[2] = E Spells[3] = R */ public override void OnCombo() { var combo = Features.First(it => it.NameFeature == "Combo"); var Target = TargetSelector.GetTarget(900, DamageType.Physical); if (Target == null) return; var itens = new ItemController(); if (Player.HasBuffOfType(BuffType.Charm) || Player.HasBuffOfType(BuffType.Blind) || Player.HasBuffOfType(BuffType.Fear) || Player.HasBuffOfType(BuffType.Polymorph) || Player.HasBuffOfType(BuffType.Silence) || Player.HasBuffOfType(BuffType.Sleep) || Player.HasBuffOfType(BuffType.Snare) || Player.HasBuffOfType(BuffType.Stun) || Player.HasBuffOfType(BuffType.Suppression) || Player.HasBuffOfType(BuffType.Taunt)) { itens.CastScimitarQSS(); } if (Q.IsReady() && combo.IsChecked("combo.q") && Q.IsReady() && Target.IsValidTarget(Q.Range)) { if (combo.IsChecked("combo.q.smartq")) { QLogic(Target); } else if (combo.IsChecked("combo.q.saveqtododgespells")) { } else { Q.Cast(Target); } } if (SpellsUtil.GetTargettedSpell(SpellsUtil.Summoners.Smite) != null) { var Smite = SpellsUtil.GetTargettedSpell(SpellsUtil.Summoners.Smite); if (Target.IsValidTarget(Smite.Range) && Smite.IsReady()) { if (Smite.Name.Contains("gank")) Smite.Cast(Target); else if (Smite.Name.Contains("duel") && Player.IsInAutoAttackRange(Target)) Smite.Cast(Target); } } if (R.IsReady() && combo.IsChecked("combo.r") && Player.Distance(Target) <= Player.GetAutoAttackRange(Target) + 300) { R.Cast(); } if (E.IsReady() && combo.IsChecked("combo.e") && Player.IsInAutoAttackRange(Target)) E.Cast(); if (Target.IsValidTarget(Q.Range)) itens.CastYoumuusGhostBlade(); itens.CastBilgeBtrk(Target); itens.CastTiamatHydra(Target); itens.CastRanduin(Target); itens.CastHextechGunBlade(Target); itens.CastTitanicHydra(Target); return; }