public static void Combo() { var target = TargetSelector.SeletedEnabled && Yasuo.ComboMenu["combo.leftclickRape"].Cast <CheckBox>().CurrentValue&& TargetSelector.SelectedTarget != null && TargetSelector.SelectedTarget.IsValidTarget(1375) ? TargetSelector.SelectedTarget : TargetSelector.GetTarget(SpellManager.Q.Range + 475 + 100, DamageType.Physical); if (target == null) { return; } if (SpellManager.R.IsReady() && SpellManager.GetLowestKnockupTime() <= 250 + Game.Ping && Yasuo.ComboMenu["combo.R"].Cast <CheckBox>().CurrentValue&& (Yasuo.ComboMenu["combo.RTarget"].Cast <CheckBox>().CurrentValue&& target.IsKnockedUp() && TargetSelector.SelectedTarget == target || Yasuo.ComboMenu["combo.RKillable"].Cast <CheckBox>().CurrentValue&& target.Health <= DamageHandler.RDamage(target) && target.Health > DamageHandler.QDamage(target) || SpellManager.GetKnockedUpTargets() >= Yasuo.ComboMenu["combo.MinTargetsR"].Cast <Slider>().CurrentValue)) { SpellManager.R.Cast(); } if (target.IsValidTarget(SpellManager.Q.Range) && Yasuo.ComboMenu["combo.Q"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDashing()) { var pos = DashingManager.GetPlayerPosition(300); if (SpellManager.Q.IsReady() && (target.Distance(pos) < 400)) { Player.CastSpell(SpellSlot.Q); } } else if (SpellManager.Q.IsReady()) { SpellManager.Q.Cast(target); return; } } if (Yasuo.ComboMenu["combo.E"].Cast <CheckBox>().CurrentValue&& target.GetDashPos().Distance(target) < 400 && target.CanDash() && target.Distance(Player.Instance) > Player.Instance.GetAutoAttackRange(target)) { SpellManager.E.Cast(target); } if (Yasuo.ComboMenu["combo.E"].Cast <CheckBox>().CurrentValue&& target.Distance(Player.Instance) > Player.Instance.GetAutoAttackRange(target) && !Player.Instance.IsDashing()) { foreach (var unit in EntityManager.MinionsAndMonsters.CombinedAttackable) { if (!(unit.GetDashPos().Distance(target) < Player.Instance.Distance(target)) || (unit.GetDashPos().IsUnderTower() && TargetSelector.SelectedTarget != target)) { continue; } SpellManager.E.Cast(unit); return; } foreach (var unit in EntityManager.Heroes.Enemies) { if (!(unit.GetDashPos().Distance(target) < Player.Instance.Distance(target)) || (unit.GetDashPos().IsUnderTower() && TargetSelector.SelectedTarget != target)) { continue; } SpellManager.E.Cast(unit); return; } } if (Player.Instance.HasWhirlwind()) { return; } if (Yasuo.ComboMenu["combo.stack"].Cast <CheckBox>().CurrentValue) { SpellManager.StackQ(); } }
public static void Combo() { var target = TargetSelector.SeletedEnabled && Yasuo.ComboMenu["combo.leftclickRape"].Cast <CheckBox>().CurrentValue&& TargetSelector.SelectedTarget != null && TargetSelector.SelectedTarget.IsValidTarget(1375) ? TargetSelector.SelectedTarget : TargetSelector.GetTarget(SpellManager.Q().Range + 475 + 100, DamageType.Physical); if (target == null) { return; } if (SpellManager.R.IsReady() && SpellManager.GetLowestKnockupTime() <= 250 + Game.Ping && Yasuo.ComboMenu["combo.R"].Cast <CheckBox>().CurrentValue&& (Yasuo.ComboMenu["combo.RTarget"].Cast <CheckBox>().CurrentValue&& target.IsKnockedUp() && TargetSelector.SelectedTarget == target || Yasuo.ComboMenu["combo.RKillable"].Cast <CheckBox>().CurrentValue&& target.Health <= DamageHandler.RDamage(target) && target.Health > DamageHandler.QDamage(target) || SpellManager.GetKnockedUpTargets() >= Yasuo.ComboMenu["combo.MinTargetsR"].Cast <Slider>().CurrentValue)) { SpellManager.R.Cast(); } if (target.IsValidTarget(SpellManager.Q().Range) && Yasuo.ComboMenu["combo.Q"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDashing()) { var pos = DashingManager.GetPlayerPosition(300); if (SpellManager.Q().IsReady() && (target.Distance(pos) < 450)) { Player.CastSpell(SpellSlot.Q); } } else if (SpellManager.Q().IsReady()) { SpellManager.Q().Cast(target); return; } } var unit = target.GetClosestEUnit(); if (Yasuo.ComboMenu["combo.E"].Cast <CheckBox>().CurrentValue&& !Player.Instance.IsDashing() && unit != null && unit.GetDashPos().Distance(target) < Player.Instance.Distance(target) && (!unit.GetDashPos().IsUnderTower() || TargetSelector.SelectedTarget == target)) { SpellManager.E.Cast(unit); } if (Yasuo.ComboMenu["combo.stack"].Cast <CheckBox>().CurrentValue) { SpellManager.StackQ(); } }