private void OnUpdate(EventArgs args) { if (!CheckGuardians() || Target == null || (!Menu.Item("Gragas.Harass.E.Range").GetValue <bool>() && Target.Distance(ObjectManager.Player) > spell.Spell.Range - 150) || Menu.Item("Gragas.Harass.E.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent) { return; } switch (Menu.Item("Gragas.Harass.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; } }
private void OnUpdate(EventArgs args) { if (!CheckGuardians() || Target == null || Target.Health > spell.GetDamage(Target) || spell.OKTW(Target).Hitchance < HitChance.High || Menu.Item("Gragas.Killsteal.E.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent) { return; } spell.Spell.Cast(spell.OKTW(Target).CastPosition); }
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; } } }