private void OnUpdate(EventArgs args) { if (!CheckGuardians() || Target == null || !spell.E1 && (ObjectManager.Player.Mana < 80 || Target.Distance(ObjectManager.Player) < 100)) { return; } spell.CastItem(); spell.Spell.Cast(); }
private void OnUpdate(EventArgs args) { if (!CheckGuardians() || Minion == null || !spell.E1 || (Menu.Item("LeeSin.Lane.E.Enemies").GetValue <bool>() && ObjectManager.Player.CountEnemiesInRange(1400) >= 1) || (Minion.Health > spell.GetDamage(Minion) && spell.E1)) { return; } spell.CastItem(); spell.Spell.Cast(Minion); }
private void OnSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (!CheckGuardians() || Mob == null || !sender.IsMe || !args.SData.IsAutoAttack()) { return; } foreach (var m in Mob) { if ((Menu.Item("LeeSin.Jungle.E.Killable").GetValue <bool>() && m.Health < spell.GetDamage(m)) || !wSpell.Spell.IsReady() || !spell.E1 && (spell.ShouldE2(m) || spell.PassiveStacks <= 1)) { spell.CastItem(); spell.Spell.Cast(m); } } }