public static void OnLaneClear() { var count = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.ServerPosition, Player.AttackRange, false).Count(); var source = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.ServerPosition, Player.AttackRange).OrderByDescending(a => a.MaxHealth).FirstOrDefault(); if (count == 0) { return; } if (Q.IsReady() && KzKarthusMenu.lcQ() && KzKarthusMenu.lcQ1() <= count && Player.ManaPercent >= KzKarthusMenu.lcM()) { Q.Cast(source.Position); } if (E.IsReady() && KzKarthusMenu.lcE() && KzKarthusMenu.lcE2() <= count && Player.ManaPercent >= KzKarthusMenu.lcM()) { if (Player.Spellbook.GetSpell(SpellSlot.E).ToggleState == 1) { E.Cast(); } } else { if (Player.Spellbook.GetSpell(SpellSlot.E).ToggleState == 2) { E.Cast(); } } }