public static void r2Maxdamage() { if (CheckUlt() && getCheckBoxItem(comboMenu, "usews") && SpellManager.R.IsReady()) { #region MaxDmage if (getBoxItem(comboMenu, "wsmode") == 1) // max damage { if (riventarget().IsValidTarget(SpellManager.R.Range) && !riventarget().IsZombie&& riventarget().DistanceToPlayer() < 600) { if (DamageManager.GetRDamage(riventarget()) / riventarget().MaxHealth * 100 >= 50) { var p = SpellManager.R2.GetPrediction(riventarget()); if (p.HitChance >= HitChance.Medium && !didaa && !riventarget().HasBuff("kindredrnodeathbuff")) { if (!fightingLogic || getCheckBoxItem(comboMenu, "r" + riventarget().ChampionName) || (fightingLogic && !rrektAny())) { SpellManager.R2.Cast(p.CastPosition); } } } if (SpellManager.Q.IsReady() && Qcount < 2 || SpellManager.Q.IsReady(2) && Qcount < 2) { var aadmg = player.GetAutoAttackDamage(riventarget(), true) * 2; var currentrdmg = DamageManager.GetRDamage(riventarget()); var qdmg = DamageManager.GetQDamage(riventarget()) * 2; var damage = aadmg + currentrdmg + qdmg; if (xtra((float)damage) >= riventarget().Health || riventarget().CountEnemyChampionsInRange(275) >= 2) { if (riventarget().Distance(player.ServerPosition) <= truerange + SpellManager.Q.Range) { var p = SpellManager.R2.GetPrediction(riventarget()); if (!riventarget().HasBuff("kindredrnodeathbuff") && !didaa) { if (p.HitChance >= HitChance.High && !didaa) { if (!fightingLogic || getCheckBoxItem(comboMenu, "r" + riventarget().ChampionName) || (fightingLogic && !rrektAny())) { SpellManager.R2.Cast(p.CastPosition); } } } } } } } } #endregion } }
public static void r2Kill() { if (CheckUlt() && getCheckBoxItem(comboMenu, "usews") && SpellManager.R.IsReady()) { #region Killsteal foreach (var t in ObjectManager.Get <AIHeroClient>().Where(h => h.IsValidTarget(SpellManager.R.Range))) { if (getCheckBoxItem(comboMenu, "logicR") && Player.Instance.IsInAutoAttackRange(t)) { if (player.GetAutoAttackDamage(t, true) * 3 >= t.Health) { if (player.HealthPercent > 75) { if (t.CountEnemyChampionsInRange(400) > 1 && t.CountEnemyChampionsInRange(400) <= 2) { if (t.HealthPercent < 20 || (t.Health > DamageManager.GetRDamage(t) + Me.GetAutoAttackDamage(t) * 2 && t.HealthPercent < 40) || (t.Health <= DamageManager.GetRDamage(t)) || (t.Health <= DamageManager.GetComboDamage(t))) { var pred = SpellManager.R2.GetPrediction(t); if (pred.HitChance == (HitChance)getBoxItem(comboMenu, "rhitc") + 4 && !didaa && !t.HasBuff("kindredrnodeathbuff")) { SpellManager.R2.Cast(pred.CastPosition); } } } } } } if (DamageManager.GetRDamage(t) > t.Health && t.DistanceToPlayer() < 600) { var pred = SpellManager.R2.GetPrediction(t); if (pred.HitChance == (HitChance)getBoxItem(comboMenu, "rhitc") + 4 && !didaa && !t.HasBuff("kindredrnodeathbuff")) { SpellManager.R2.Cast(pred.CastPosition); } } if (SpellManager.W.IsReady() && t.Distance(player) <= 250 && DamageManager.GetRDamage(t) + DamageManager.GetWDamage(t) >= t.HealthPercent) { var p = SpellManager.R2.GetPrediction(t); if (p.HitChance == (HitChance)getBoxItem(comboMenu, "rhitc") + 4 && !didaa && !t.HasBuff("kindredrnodeathbuff")) { SpellManager.R2.Cast(p.CastPosition); } } } #endregion } }