private void OnUpdate(EventArgs args) { if (!CheckGuardians() || Target == null || Target.Health > spell.GetDamage(Target) || spell.Prediction(Target).Hitchance < HitChance.High || Menu.Item("Example.Killsteal.E.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent) { return; } spell.Spell.Cast(spell.Prediction(Target).CastPosition); }
private void OnUpdate(EventArgs args) { if (!CheckGuardians() || Target == null || Menu.Item("Lux.Combo.E.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent) { return; } if (spell.IsActive && spell.InRange(Target)) { if (ObjectManager.Player.Distance(Target) < ObjectManager.Player.AttackRange && Target.HasBuff("luxilluminatingfraulein") && Menu.Item("Lux.Combo.E.Proc").GetValue <bool>()) { return; } spell.Spell.Cast(); } else { switch (Menu.Item("Lux.Combo.E.Prediction").GetValue <StringList>().SelectedIndex) { case 0: switch (Menu.Item("Lux.Combo.E.Hitchance").GetValue <StringList>().SelectedIndex) { case 0: if (spell.Prediction(Target).Hitchance >= SebbyLib.Movement.HitChance.High) { spell.Spell.Cast(spell.Prediction(Target).CastPosition); } break; case 1: if (spell.Prediction(Target).Hitchance >= SebbyLib.Movement.HitChance.VeryHigh) { spell.Spell.Cast(spell.Prediction(Target).CastPosition); } break; } break; case 1: spell.Spell.Cast(Target); break; } } }
private void OnUpdate(EventArgs args) { if (!CheckGuardians() || Target == null || Target.Health > OktwCommon.GetKsDamage(Target, spell.Spell) || spell.Prediction(Target).Hitchance < HitChance.High || Menu.Item("Xerath.Killsteal.E.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent) { return; } spell.Spell.Cast(Target); }
private void OnUpdate(EventArgs args) { if (!CheckGuardians() || Mob == null || Menu.Item("Lux.Jungle.E.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent) { return; } if (spell.IsActive && spell.InRange(Mob)) { spell.Spell.Cast(); } else { spell.Spell.Cast(spell.Prediction(Mob).CastPosition); } }