private void LastHit() { if (!OrbwalkManager.CanMove(40)) { return; } List <Obj_AI_Base> allMinions = MinionManager.GetMinions(Player.ServerPosition, Q.Range); if (Q.IsReady()) { foreach (Obj_AI_Base minion in allMinions) { if (minion.IsValidTarget() && HealthPrediction.GetHealthPrediction(minion, (int)(Player.Distance(minion.Position) * 1000 / 1400)) < Player.GetSpellDamage(minion, SpellSlot.Q) - 10) { PredictionOutput prediction = Util.GetP(_currentBallPosition, Q, minion, true); if (prediction.Hitchance >= HitChance.High && Q.IsReady()) { Q.Cast(prediction.CastPosition); } } } } }
private void Farm() { if (!OrbwalkManager.CanMove(40)) { return; } List <Obj_AI_Base> allMinionsQ = MinionManager.GetMinions(Player.ServerPosition, Q.Range, MinionTypes.All, MinionTeam.NotAlly); List <Obj_AI_Base> allMinionsE = MinionManager.GetMinions(Player.ServerPosition, E.Range, MinionTypes.All, MinionTeam.NotAlly); var useQ = menu.Item("UseQFarm", true).GetValue <bool>(); var useE = menu.Item("UseEFarm", true).GetValue <bool>(); if (useQ && allMinionsQ.Count > 0) { Q.Cast(allMinionsQ[0]); } if (useE && allMinionsE.Count > 0) { E.Cast(allMinionsE[0]); } }
private void Farm() { if (!OrbwalkManager.CanMove(40)) { return; } if (!ManaManager.HasMana("Farm")) { return; } List <Obj_AI_Base> allMinionsQ = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, Q.Range + Q.Width); List <Obj_AI_Base> allMinionsW = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, Q.Range + Q.Width); var useQ = menu.Item("UseQFarm", true).GetValue <bool>(); var useW = menu.Item("UseWFarm", true).GetValue <bool>(); int min = menu.Item("qFarm", true).GetValue <Slider>().Value; if (useQ && Q.IsReady()) { Q.From = _currentBallPosition; MinionManager.FarmLocation pred = Q.GetCircularFarmLocation(allMinionsQ, Q.Width + 15); if (pred.MinionsHit >= min) { Q.Cast(pred.Position); } } int hit = 0; if (useW && W.IsReady()) { hit += allMinionsW.Count(enemy => enemy.Distance(_currentBallPosition) < W.Width); if (hit >= min && W.IsReady()) { W.Cast(); } } }
private void LastHit() { if (!OrbwalkManager.CanMove(40)) { return; } var allMinions = MinionManager.GetMinions(Player.ServerPosition, Q.Range); if (Q.IsReady()) { foreach (var minion in allMinions) { if (minion.IsValidTarget() && HealthPrediction.GetHealthPrediction(minion, (int)(Player.Distance(minion) * 1000 / 1400)) < Player.GetSpellDamage(minion, SpellSlot.Q) - 10) { Q.Cast(minion); return; } } } }
private void LastHit() { if (!OrbwalkManager.CanMove(40)) { return; } List <Obj_AI_Base> allMinionsE = MinionManager.GetMinions(Player.ServerPosition, E.Range, MinionTypes.All, MinionTeam.NotAlly); if (allMinionsE.Count > 0 && E.IsReady()) { foreach (var minion in allMinionsE) { if (E.IsKillable(minion)) { E.Cast(minion); } } } }
private void Farm() { if (!OrbwalkManager.CanMove(40)) { return; } var allMinionsQ = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, Q.Range + Q.Width, MinionTypes.All, MinionTeam.NotAlly); var useQ = menu.Item("UseQFarm", true).GetValue <bool>(); var useE = menu.Item("UseEFarm", true).GetValue <bool>(); if (useQ && allMinionsQ.Count > 0 && Q.IsReady()) { Q.Cast(allMinionsQ[0]); } var minionsE = MinionManager.GetMinions(Player.ServerPosition, E.Range, MinionTypes.All, MinionTeam.NotAlly); if (minionsE.Count == 0) { return; } var minionsE2 = MinionManager.GetMinions(minionsE[0].ServerPosition, E.Range, MinionTypes.All, MinionTeam.NotAlly); var points = minionsE2.Select(x => x.ServerPosition.To2D()).ToList(); if (useE && E.IsReady() && minionsE.Count > 0) { E2.UpdateSourcePosition(minionsE[0].ServerPosition, minionsE[0].ServerPosition); var pred = GetBestLineFarmLocation(minionsE[0].ServerPosition.To2D(), points, E.Width, E2.Range); var min = menu.Item("MinMinion", true).GetValue <Slider>().Value; if (pred.MinionsHit >= min) { SpellCastManager.CastLineSpell(minionsE[0].Position, pred.Position.To3D()); } } }