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); } }
private void OnUpdate(EventArgs args) { if (!CheckGuardians() || Target == null || Menu.Item("Gragas.Combo.E.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent) { return; } if (Menu.Item("Gragas.Combo.E.Flash").GetValue <bool>() && damage.GetComboDamage(Target) * 1.15 > Target.Health && spell.Flash.IsReady() && Target.Distance(ObjectManager.Player) < 800) { ObjectManager.Player.Spellbook.CastSpell(spell.Flash, Target.Position); spell.Spell.Cast(Target.Position); } else { switch (Menu.Item("Gragas.Combo.E.Hitchance").GetValue <StringList>().SelectedIndex) { case 0: if (spell.OKTW(Target).Hitchance >= HitChance.High) { spell.Spell.Cast(spell.OKTW(Target).CastPosition); } break; case 1: if (spell.OKTW(Target).Hitchance >= HitChance.VeryHigh) { spell.Spell.Cast(spell.OKTW(Target).CastPosition); } break; } } }