private void OnUpdate(EventArgs args) { if (!CheckGuardians() || Target == null || Menu.Item("Ziggs.Combo.R.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent || (Menu.Item("Ziggs.Combo.R.Killable").GetValue <bool>() && damage.GetComboDamage(Target) < Target.Health)) { return; } spell.Spell.SPredictionCastAoe(Menu.Item("Ziggs.Combo.R.Hit").GetValue <Slider>().Value); spell.Spell.CastIfWillHit(Target, Menu.Item("Ziggs.Combo.R.Hit").GetValue <Slider>().Value); switch (Menu.Item("Ziggs.Combo.R.Prediction").GetValue <StringList>().SelectedIndex) { case 0: Common(); break; case 1: SPrediction(); break; case 2: OKTW(); break; } }
private void OnUpdate(EventArgs args) { if (!CheckGuardians() || Target == null || Menu.Item("Ziggs.Combo.W.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent) { return; } if (Menu.Item("Ziggs.Combo.W.Insec").GetValue <bool>() && eSpell.GameobjectLists != null) { Insec(); } else if (Menu.Item("Ziggs.Combo.W.Jump").GetValue <bool>() && qSpell.Spell.IsReady() && Target.Distance(ObjectManager.Player) > 850 && Target.Health <= damage.GetComboDamage(Target) && ObjectManager.Player.HealthPercent >= Target.HealthPercent && ObjectManager.Player.ManaPercent >= 20) { var pred = spell.Prediction(Target).CastPosition; spell.Spell.Cast(ObjectManager.Player.Position.Extend(pred, -140)); } else { Combo(); } }
public void OnDraw(EventArgs args) { if (ObjectManager.Player.IsDead) { return; } foreach (var enemy in ObjectManager.Get <AIHeroClient>().Where(ene => ene.IsValidTarget(1750))) { heroHealthBarIndicator.Unit = enemy; heroHealthBarIndicator.DrawDmg(Damage.GetComboDamage(enemy), enemy.Health <= Damage.GetComboDamage(enemy) * .9 ? Color.LawnGreen : Color.Yellow); } }