private void moonfall() { var target = TargetSelector.GetTarget( Menu.Item("ERange").GetValue <Slider>().Value, TargetSelector.DamageType.Magical); if (target == null || !target.IsValid) { return; } if (Menu.Item("MinTargets").GetValue <Slider>().Value > target.CountEnemiesInRange(Menu.Item("ERange").GetValue <Slider>().Value)) { return; } if (Menu.Item("EKillable").GetValue <bool>() && logic.ComboDmg(target) * 1.2 < target.Health) { return; } Variables.Spells[SpellSlot.E].Cast(); }
public void OnEndScene(EventArgs args) { foreach ( var enemy in ObjectManager.Get <AIHeroClient>().Where(ene => ene.IsValidTarget(1200) && !ene.IsZombie)) { var easyKill = Variables.Spells[SpellSlot.R].IsReady() ? new ColorBGRA(0, 255, 0, 120) : new ColorBGRA(255, 255, 0, 120); drawDamage.Unit = enemy; drawDamage.DrawDmg(logic.ComboDmg(enemy), easyKill); } }
private void paleCascade() { var target = TargetSelector.GetTarget(825, TargetSelector.DamageType.Magical); if (target == null || !target.IsValid || target.CountEnemiesInRange(1400) >= Menu.Item("REnemies").GetValue <Slider>().Value || (Menu.Item("Turret").GetValue <bool>() && target.UnderTurret()) || (Menu.Item("Killable").GetValue <bool>() && logic.ComboDmg(target) < target.Health)) { return; } if (rLogic.Buff(target)) { Variables.Spells[SpellSlot.R].Cast(target); } }
private void Lunarrush() { var target = TargetSelector.GetTarget( Variables.Player.AttackRange + Variables.Player.BoundingRadius, TargetSelector.DamageType.Magical); if (target == null || !target.IsValid) { return; } if (Menu.Item("WKillable").GetValue <bool>() && logic.ComboDmg(target) < target.Health) { return; } Variables.Spells[SpellSlot.W].Cast(); }
private void BodySlam() { var target = TargetSelector.GetTarget( Menu.Item("ERange").GetValue <Slider>().Value, TargetSelector.DamageType.Magical); if (target == null || !target.IsValid || (Menu.Item("EKillable").GetValue <bool>() && logic.ComboDmg(target) < target.Health)) { return; } var ePred = Variable.Spells[SpellSlot.E].GetSPrediction(target); if (target.HasBuffOfType(BuffType.Knockback) || ePred.HitChance < HitChance.High) { return; } Variable.Spells[SpellSlot.E].Cast(ePred.CastPosition); }