public static void KillSteal() { if (Player.Instance.IsDead) { return; } var target_enemy = EntityManager.Heroes.Enemies.Where(x => x.IsValidTarget() && Player.Instance.Distance(x) <= 1200).FirstOrDefault(); if (target_enemy != null) { if (MenuMisc["Steal.K.0"].Cast <CheckBox>().CurrentValue) { if (!target_enemy.IsInvulnerable && !target_enemy.HasUndyingBuff() && !target_enemy.IsZombie) { if (target_enemy.Health <= Damage.DmgCalSteal(target_enemy)) { if (Player.Instance.Distance(target_enemy) <= Player.Instance.AttackRange) { Player.IssueOrder(GameObjectOrder.AttackTo, target_enemy); } if (Mode_Item.Ignite.IsReady()) { Mode_Item.Ignite.Cast(target_enemy); } if (SpellManager.Q.IsReady()) { SpellManager.Q.Cast(target_enemy); } if (Mode_Item.Bilgewater.IsReady()) { Mode_Item.Bilgewater.Cast(target_enemy); } if (Mode_Item.BladeKing.IsReady()) { Mode_Item.BladeKing.Cast(target_enemy); } if (Mode_Item.Hextech.IsReady()) { Mode_Item.Hextech.Cast(target_enemy); } } } } } } //End KillSteal
private static void Gama_OnDraw(EventArgs args) { if (Player.Instance.IsDead) { return; } if (MenuDraw["Draw.Q.Range"].Cast <CheckBox>().CurrentValue) { Circle.Draw(SpellManager.Q.IsReady() ? Color.Orange : Color.IndianRed, SpellManager.Q.Range, Player.Instance.Position); } if (MenuDraw["Draw.Q.Big"].Cast <CheckBox>().CurrentValue) { Circle.Draw(SpellManager.Q.IsReady() ? Color.Orange : Color.IndianRed, 450, Player.Instance.Position); } if (MenuDraw["Draw.R.Range"].Cast <CheckBox>().CurrentValue) { Circle.Draw(SpellManager.R.IsReady() ? Color.DeepSkyBlue : Color.IndianRed, SpellManager.R.Range, Player.Instance.Position); } if (MenuDraw["Draw.ComboCal"].Cast <CheckBox>().CurrentValue) { foreach (var enemy in EntityManager.Heroes.Enemies.Where(x => x.IsValidTarget(2000) && x.IsHPBarRendered)) { var Damage_Per = (int)((Damage.DmgCalSteal(enemy) / enemy.TotalShieldHealth()) * 100); if (Damage_Per > 0) { MainFont.DrawText(null, enemy.TotalShieldHealth() <= Damage_Per ? "Killable" : Damage_Per + "%", (int)enemy.HPBarPosition.X + 40, (int)enemy.HPBarPosition.Y - 45, Damage_Per > enemy.TotalShieldHealth() ? Color.Yellow : Color.White); } } } foreach (var hero in EntityManager.Heroes.Enemies.Where(x => x.IsValid && !x.IsDead && Player.Instance.Distance(x) < 2000)) { if (hero != null) { if (MenuDraw["Draw." + hero.ChampionName.ToLower() + ".Q"].Cast <CheckBox>().CurrentValue) { Circle.Draw(!hero.Spellbook.GetSpell(SpellSlot.Q).IsReady ? Color.White : Color.Zero, hero.Spellbook.GetSpell(SpellSlot.Q).SData.CastRange, hero.Position); } if (MenuDraw["Draw." + hero.ChampionName.ToLower() + ".W"].Cast <CheckBox>().CurrentValue) { Circle.Draw(!hero.Spellbook.GetSpell(SpellSlot.W).IsReady ? Color.White : Color.Zero, hero.Spellbook.GetSpell(SpellSlot.W).SData.CastRange, hero.Position); } if (MenuDraw["Draw." + hero.ChampionName.ToLower() + ".E"].Cast <CheckBox>().CurrentValue) { Circle.Draw(!hero.Spellbook.GetSpell(SpellSlot.E).IsReady ? Color.White : Color.Zero, hero.Spellbook.GetSpell(SpellSlot.E).SData.CastRange, hero.Position); } if (MenuDraw["Draw." + hero.ChampionName.ToLower() + ".R"].Cast <CheckBox>().CurrentValue) { Circle.Draw(!hero.Spellbook.GetSpell(SpellSlot.R).IsReady ? Color.White : Color.Zero, hero.Spellbook.GetSpell(SpellSlot.R).SData.CastRange, hero.Position); } } } if (MenuDraw["Draw.Virtual"].Cast <CheckBox>().CurrentValue) { Circle.Draw(Color.White, MenuDraw["Virtual.Range1"].Cast <Slider>().CurrentValue, Player.Instance.Position); Circle.Draw(Color.White, MenuDraw["Virtual.Range2"].Cast <Slider>().CurrentValue, Player.Instance.Position); } }