public static void KillSteal(EventArgs args) { if (Menus.Misc["Q"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady()) { var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical); if (target == null || More.Unkillable(target)) { return; } var prediction = Spells.Q.GetPrediction(target); if (target.IsValidTarget(Spells.Q.Range) && prediction.HitChance >= More.Hit() && target.TotalShieldHealth() <= Spells.Q.GetSpellDamage(target)) { Spells.Q.Cast(target); } } if (Menus.Misc["E"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady()) { var target = TargetSelector.GetTarget(Spells.E.Range, DamageType.Magical); if (target == null || More.Unkillable(target)) { return; } if (target.IsValidTarget(Spells.E.Range) && target.TotalShieldHealth() <= Calculations.Edmg) { Spells.E.Cast(target); } } if (Menus.Misc["R"].Cast <CheckBox>().CurrentValue&& Spells.R.IsReady()) { var target = TargetSelector.GetTarget(Spells.R.Range, DamageType.Magical); if (target == null || More.Unkillable(target)) { return; } if (target.IsValidTarget(Spells.R.Range) && target.TotalShieldHealth() <= Calculations.Rdmg) { Spells.R.Cast(target); } } if (Menus.Misc["ignite"].Cast <CheckBox>().CurrentValue&& Spells.Ignite != null && Spells.Ignite.IsReady()) { var target = TargetSelector.GetTarget(Spells.Ignite.Range, DamageType.True); if (target == null || More.Unkillable(target)) { return; } if (target.IsValidTarget(Spells.Ignite.Range) && target.TotalShieldHealth() <= Player.Instance.GetSummonerSpellDamage(target, DamageLibrary.SummonerSpells.Ignite)) { Spells.Ignite.Cast(target); } } }
public static void Harass() { if (Player.Instance.ManaPercent <= Menus.HarassMana.CurrentValue || !More.CanCast()) { return; } if (Menus.Combo["Qh"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady()) { var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical); if (target == null || More.Unkillable(target)) { return; } var prediction = Spells.Q.GetPrediction(target); if (target.IsValidTarget(Spells.Q.Range) && prediction.HitChance >= More.Hit() && ((target.HasBuff("malzahare") && Game.Time * 1000f >= More.CastedE) || (!target.HasBuff("malzahare") && !target.IsInRange(Player.Instance, Spells.E.Range)))) { Spells.Q.Cast(prediction.CastPosition); } } if (Menus.Combo["Wh"].Cast <CheckBox>().CurrentValue&& Spells.W.IsReady() && (!Menus.Combo["Eh"].Cast <CheckBox>().CurrentValue || !Spells.E.IsReady())) { var target = TargetSelector.GetTarget(Spells.E.Range, DamageType.Mixed); if (target == null || More.Unkillable(target)) { return; } More.CastW(target); } if (Menus.Combo["Eh"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady()) { var target = TargetSelector.GetTarget(Spells.E.Range, DamageType.Magical); if (target == null || More.Unkillable(target)) { return; } if (target.IsValidTarget(Spells.E.Range)) { Spells.E.Cast(target); } } }
public static void Combo() { if (!More.CanCast()) { return; } if (Menus.Combo["Qc"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady()) { var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical); if (target == null || More.Unkillable(target)) { return; } var prediction = Spells.Q.GetPrediction(target); if (target.IsValidTarget(Spells.Q.Range) && prediction.HitChance >= More.Hit() && (!target.IsInRange(Player.Instance, Spells.E.Range) || ((!Menus.Combo["Wc"].Cast <CheckBox>().CurrentValue || !Spells.W.IsReady()) && (!Menus.Combo["Ec"].Cast <CheckBox>().CurrentValue || !Spells.E.IsReady())))) { Spells.Q.Cast(prediction.CastPosition); } } if (Menus.Combo["Wc"].Cast <CheckBox>().CurrentValue&& Spells.W.IsReady() && (!Menus.Combo["Ec"].Cast <CheckBox>().CurrentValue || !Spells.E.IsReady())) { var target = TargetSelector.GetTarget(Spells.E.Range, DamageType.Mixed); if (target == null || More.Unkillable(target)) { return; } More.CastW(target); } if (Menus.Combo["Ec"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady()) { var target = TargetSelector.GetTarget(Spells.E.Range, DamageType.Magical); if (target == null || More.Unkillable(target)) { return; } if (target.IsValidTarget(Spells.E.Range)) { Spells.E.Cast(target); } } if (Menus.Combo["Rc"].Cast <CheckBox>().CurrentValue&& Spells.R.IsReady() && (!Menus.Combo["Qc"].Cast <CheckBox>().CurrentValue || !Spells.Q.IsReady()) && (!Menus.Combo["Wc"].Cast <CheckBox>().CurrentValue || !Spells.W.IsReady()) && (!Menus.Combo["Ec"].Cast <CheckBox>().CurrentValue || !Spells.E.IsReady())) { var target = TargetSelector.GetTarget(Spells.R.Range, DamageType.Magical); if (target == null || More.Unkillable(target)) { return; } if (target.IsValidTarget(Spells.R.Range)) { Spells.R.Cast(target); } } }