private void Harass() { if (ManaManager.HasEnoughMana(Menu.GetSlider("HarassMana"))) { if (Menu.GetBool("HarassW") && W.IsReady()) { var target = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Physical); if (target.Check(W.Range) && target.DistanceToPlayer() > Q.Range) { SpellManager.PredCast(W, target); } } if (Menu.GetBool("HarassQ") && Q.IsReady()) { var target = TargetSelector.GetTarget(bigGunRange, TargetSelector.DamageType.Physical); if (target.IsValidTarget(bigGunRange) && Orbwalking.CanAttack()) { if (target.CountEnemiesInRange(150) >= 2 && Me.Mana > R.ManaCost + Q.ManaCost * 2 + W.ManaCost && target.DistanceToPlayer() > Q.Range) { Q.Cast(); } if (target.DistanceToPlayer() > Q.Range && Me.Mana > R.ManaCost + Q.ManaCost * 2 + W.ManaCost) { Q.Cast(); } } else { if (Me.HasBuff("JinxQ") && Q.IsReady()) { Q.Cast(); } } } } }
private void Combo() { if (R.Instance.Name == "JhinRShot") { return; } var orbTarget = Orbwalker.GetTarget(); var wTarget = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Physical); if (Menu.GetBool("ComboW") && W.IsReady() && wTarget.Check(W.Range)) { if (Menu.GetBool("ComboWOnly")) { if (HasPassive(wTarget)) { SpellManager.PredCast(W, wTarget, true); } } else { SpellManager.PredCast(W, wTarget, true); } } if (Menu.GetBool("ComboQ") && Q.IsReady()) { var target = TargetSelector.GetTarget(Q.Range + 300, TargetSelector.DamageType.Physical); var qTarget = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Physical); if (qTarget.Check(Q.Range) && !Orbwalking.CanAttack()) { Q.CastOnUnit(qTarget, true); } else if (target.Check(Q.Range + 300) && Menu.GetBool("ComboQMinion")) { if (Me.HasBuff("JhinPassiveReload") || (!Me.HasBuff("JhinPassiveReload") && Me.CountEnemiesInRange(Orbwalking.GetRealAutoAttackRange(Me) + Me.BoundingRadius) == 0)) { var qPred = Prediction.GetPrediction(target, 0.25f); var bestQMinion = MinionManager.GetMinions(qPred.CastPosition, 300) .Where(x => x.IsValidTarget(Q.Range)) .OrderBy(x => x.Health) .ThenBy(x => x.Distance(target)) .FirstOrDefault(); if (bestQMinion != null && bestQMinion.IsValidTarget(Q.Range)) { Q.CastOnUnit(bestQMinion, true); } } } } var eTarget = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical); if (Menu.GetBool("ComboE") && E.IsReady() && eTarget.Check(E.Range) && Utils.TickCount - LastECast > 2500 && !IsAttack) { if (!eTarget.CanMoveMent()) { SpellManager.PredCast(E, eTarget, true); } else { if (E.GetPrediction(eTarget).Hitchance >= HitChance.High) { E.Cast(E.GetPrediction(eTarget).UnitPosition); } } } }