private static void AutoKillsteal() { if (!Spells._q.IsReadyPerfectly() || ObjectManager.Player.IsDead || !Config.CanqKS) { return; } var qMana = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).SData.Mana; foreach (var enemy in HeroManager.Enemies.Where(e => !e.IsDead)) { if (enemy.IsKillableAndValidTarget(Spells._q.GetDamage(enemy), Spells._q.DamageType, Spells._q.Range)) { if (!enemy.IsKillableAndValidTarget(Spells._w.GetDamage(enemy), Spells._w.DamageType, Orbwalking.GetRealAutoAttackRange(ObjectManager.Player)) || !Spells._w.IsReadyPerfectly()) { if (ObjectManager.Player.Distance(enemy) >= Orbwalking.GetRealAutoAttackRange(ObjectManager.Player) || !Spells._w.IsReadyPerfectly() || CardSelector.Status != SelectStatus.Selecting || CardSelector.Status != SelectStatus.Selected) { Pred.CastSebbyPredict(Spells._q, enemy, Spells._q.MinHitChance); } } } } }
private static void AutoCcq() { if (!Spells._q.IsReadyPerfectly() || ObjectManager.Player.IsDead) { return; } foreach (var enemy in HeroManager.Enemies.Where(e => e.IsValidTarget(Spells._q.Range) && !e.IsDead)) { var pred = Spells._q.GetPrediction(enemy); if (Config.IsImmobile) { if (ObjectManager.Player.ManaPercent >= Config.AutoqMana) { Pred.CastSebbyPredict(Spells._q, enemy, HitChance.Immobile); } } else if (Config.IsDashing) { if (ObjectManager.Player.ManaPercent >= Config.AutoqMana) { if (pred.Hitchance == HitChance.Dashing) { CastQ(enemy, pred.UnitPosition.To2D()); } } } if (enemy.IsValidTarget(Spells._q.Range)) { if (ObjectManager.Player.ManaPercent >= Config.AutoqMana) { if (Config.IsSlowed) { if (enemy.MoveSpeed <= 270) { Pred.CastSebbyPredict(Spells._q, enemy, Spells._q.MinHitChance); } } else if (enemy.IsCharmed) { Pred.CastSebbyPredict(Spells._q, enemy, Spells._q.MinHitChance); } } } } }
internal static void Execute() { if (Config.UseQEnemy) { if (Spells._q.IsReadyPerfectly()) { CastQTick = Utils.TickCount; foreach (var enemy in HeroManager.Enemies.Where(e => e.IsValidTarget(Spells._q.Range) && !e.IsDead)) { if (Utils.TickCount - CastQTick < 500) { Pred.CastSebbyPredict(Spells._q, enemy, Spells._q.MinHitChance); } } } } }