public static void Update(EventArgs args) { if (Spells.W.IsReady()) { var T = HeroManager.Enemies.Where(x => x.IsValidTarget(Spells.R.Range) && !x.IsZombie); foreach (var target in T) { if (target.Health < Spells.W.GetDamage(target) && InWRange(target)) { Spells.W.Cast(); } } } if (Spells.R.IsReady() && Spells.R.Instance.Name == IsSecondR) { var T = HeroManager.Enemies.Where(x => x.IsValidTarget(Spells.R.Range) && !x.IsZombie); foreach (var target in T) { if (target.Health < Dmg.Rdame(target, target.Health) && !target.HasBuff("kindrednodeathbuff") && !target.HasBuff("Undying Rage") && !target.HasBuff("JudicatorIntervention")) { Spells.R.Cast(target.Position); } } } if (Spells.Ignite.IsReady() && MenuConfig.ignite) { var target = TargetSelector.GetTarget(600f, TargetSelector.DamageType.True); if (target.IsValidTarget(600f) && Dmg.IgniteDamage(target) >= target.Health) { Player.Spellbook.CastSpell(Spells.Ignite, target); } } }
public static void Update(EventArgs args) { var target = TargetSelector.GetTarget(Spells.R.Range, TargetSelector.DamageType.Physical); if (target == null || target.HasBuff(BackgroundData.InvulnerableList.ToString())) { return; } if (Spells.W.IsReady() && MenuConfig.KsW && target.Health <= Spells.W.GetDamage(target) && BackgroundData.InRange(target)) { BackgroundData.CastW(target); } if (Spells.R.IsReady() && Spells.R.Instance.Name == IsSecondR && MenuConfig.KsR2) { if (target.Health < Dmg.RDmg(target)) { var pred = Spells.R.GetPrediction(target); Spells.R.Cast(pred.CastPosition); } } if (target.Health < Spells.Q.GetDamage(target) && Spells.Q.IsReady() && Qstack != 3) { Spells.Q.Cast(target.Position); } if (!Spells.Ignite.IsReady() || !MenuConfig.Ignite) { return; } if (target.IsValidTarget(600f) && Dmg.IgniteDamage(target) >= target.Health) { Player.Spellbook.CastSpell(Spells.Ignite, target); } }
public static void Update(EventArgs args) { var target = TargetSelector.GetTarget(Spells.R.Range, DamageType.Physical); if (target == null || target.IsDead || target.HasBuff(BackgroundData.InvulnerableList.ToString())) { return; } if (Spells.W.IsReady() && MenuConfig.KsW && target.Health <= Spells.W.GetSpellDamage(target) && BackgroundData.InRange(target)) { BackgroundData.CastW(target); } if (Spells.R.IsReady() && Spells.R.Name == IsSecondR && MenuConfig.KsR2) { var rDmg = Dmg.RDmg(target); //Chat.Print("Ult dmg= " + rDmg); if (rDmg != 0 && (target.Health + target.TotalShieldHealth()) < rDmg) { var pred = Spells.R.GetPrediction(target); Player.Spellbook.CastSpell(SpellSlot.R, pred.CastPosition); } } if (target.Health < Spells.Q.GetSpellDamage(target) && Spells.Q.IsReady() && Qstack != 3) { Player.Spellbook.CastSpell(SpellSlot.Q, target.Position); } if (Player.Spellbook.CanUseSpell(Spells.Ignite) != SpellState.Ready || !MenuConfig.Ignite) { return; } if (target.IsValidTarget(600f) && Dmg.IgniteDamage(target) >= target.Health) { Player.Spellbook.CastSpell(Spells.Ignite, target); } }
public static void Update(EventArgs args) { var hero = TargetSelector.GetTarget(Spells.R.Range, TargetSelector.DamageType.Physical); if (hero == null || hero.HasBuff("kindrednodeathbuff") || hero.HasBuff("Undying Rage") || hero.HasBuff("JudicatorIntervention")) { return; } if (Spells.W.IsReady() && InWRange(hero)) { if (hero.Health <= Spells.W.GetDamage(hero)) { Spells.W.Cast(); } } if (Spells.R.IsReady() && Spells.R.Instance.Name == IsSecondR) { if (hero.Health < Dmg.RDmg(hero)) { var pred = Spells.R.GetPrediction(hero); Spells.R.Cast(pred.CastPosition); } } if (!Spells.Ignite.IsReady() || !MenuConfig.Ignite) { return; } if (hero.IsValidTarget(600f) && Dmg.IgniteDamage(hero) >= hero.Health) { Player.Spellbook.CastSpell(Spells.Ignite, hero); } }
public static void KillSteal() { if (MenuConfig.SpellsKS) { if (!CatForm()) { if (Champion.Javelin.IsReady()) { var targets = HeroManager.Enemies.Where(x => x.IsValidTarget(Champion.Javelin.Range) && !x.IsZombie); foreach (var target in targets) { if (target.Health < Champion.Javelin.GetDamage(target) && !target.IsInvulnerable && (Player.Distance(target.Position) <= Champion.Javelin.Range)) { Champion.Javelin.Cast(target); } } } } if (CatForm()) { if (Champion.Takedown.IsReady()) { var targets = HeroManager.Enemies.Where(x => x.IsValidTarget(Champion.Javelin.Range) && !x.IsZombie); foreach (var target in targets) { if (target.Health < Champion.Takedown.GetDamage(target) && !target.IsInvulnerable && (Player.Distance(target.Position) <= Champion.Takedown.Range)) { Champion.Takedown.Cast(target); } } } if (Champion.Pounce.IsReady()) { var targets = HeroManager.Enemies.Where(x => x.IsValidTarget(Champion.Javelin.Range) && !x.IsZombie); foreach (var target in targets) { if (target.Health < Champion.Pounce.GetDamage(target) && !target.IsInvulnerable && (Player.Distance(target.Position) <= Champion.Pounce.Range)) { Champion.Pounce.Cast(target); } } } if (Champion.Swipe.IsReady()) { var targets = HeroManager.Enemies.Where(x => x.IsValidTarget(Champion.Javelin.Range) && !x.IsZombie); foreach (var target in targets) { if (target.Health < Champion.Swipe.GetDamage(target) && !target.IsInvulnerable && (Player.Distance(target.Position) <= Champion.Swipe.Range)) { Champion.Swipe.Cast(target); } } } if (Champion.Ignite.IsReady() && MenuConfig.ComboIgnite) { var target = TargetSelector.GetTarget(600f, TargetSelector.DamageType.True); if (target.IsValidTarget(600f) && Dmg.IgniteDamage(target) >= target.Health) { Player.Spellbook.CastSpell(Champion.Ignite, target); } } if (Item.Smite.IsReady() && MenuConfig.ComboSmite) { var target = TargetSelector.GetTarget(600f, TargetSelector.DamageType.True); if (target.IsValidTarget(600f) && Dmg.SmiteDamage(target) >= target.Health) { Player.Spellbook.CastSpell(Item.Smite, target); } } } } }