internal static void Execute() { var wMana = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).ManaCost; switch (CardSelector.Status) { case SelectStatus.Ready: { if (ObjectManager.Player.Mana >= wMana) { if (Config.GoldKey) { CardSelector.StartSelecting(Cards.Yellow); } else if (Config.BlueKey) { CardSelector.StartSelecting(Cards.Blue); } else if (Config.RedKey) { CardSelector.StartSelecting(Cards.Red); } } break; } case SelectStatus.Selecting: { if (Config.GoldKey) { CardSelector.JumpToCard(Cards.Yellow); } else if (Config.BlueKey) { CardSelector.JumpToCard(Cards.Blue); } else if (Config.RedKey) { CardSelector.JumpToCard(Cards.Red); } break; } } }
internal static void Execute() { var wMana = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.Mana; foreach (var enemy in HeroManager.Enemies.Where(e => !e.IsDead)) { if (Config.CanKillW && enemy.IsKillableAndValidTarget(Spells._w.GetDamage(enemy), Spells._w.DamageType, Orbwalking.GetRealAutoAttackRange(ObjectManager.Player) + 200)) { if (Spells._w.IsReadyPerfectly()) { if (CardSelector.Status == SelectStatus.Ready) { CardSelector.StartSelecting(Cards.First); } } if (CardSelector.Status == SelectStatus.Selecting) { CardSelector.JumpToCard(Cards.First); } } else if (Config.UseGoldCombo) { if (Spells._w.IsReadyPerfectly()) { if (CardSelector.Status == SelectStatus.Ready) { CardSelector.StartSelecting(Cards.Yellow); } } if (CardSelector.Status == SelectStatus.Selecting) { CardSelector.JumpToCard(Cards.Yellow); } } } }
internal static void Execute() { var wName = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Name; var wMana = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.Mana; var qMana = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).SData.Mana; //CardsLock var blueLock = wName.Equals("BlueCardLock", StringComparison.InvariantCultureIgnoreCase); var redLock = wName.Equals("RedCardLock", StringComparison.InvariantCultureIgnoreCase); var goldLock = wName.Equals("GoldCardLock", StringComparison.InvariantCultureIgnoreCase); if (!Config.Rotate) { return; } foreach (var enemy in HeroManager.Enemies.Where(e => e.IsValidTarget(Spells._q.Range) && !e.IsDead)) { if (Spells._w.IsReadyPerfectly()) { if (enemy.Distance(ObjectManager.Player) <= (ObjectManager.Player.AttackRange + Config.RotateRange)) { if (ObjectManager.Player.ManaPercent >= Config.RotateMana) { CardSelector.RotateCards(); } } } if (enemy.Distance(ObjectManager.Player) <= (ObjectManager.Player.AttackRange + Config.RotateLock)) { if (CardSelector.Status == SelectStatus.Selecting) { switch (Config.Prioritize) { case 0: { //Smart (W->Q) if (ObjectManager.Player.Mana - wMana - qMana >= wMana) { if (Spells._q.IsReadyPerfectly()) { if (blueLock) { CardSelector.JumpToCard(Cards.Red); } else if (goldLock) { CardSelector.LockCard(); } else if (redLock) { CardSelector.LockCard(); } } CardSelector.LockCard(); } CardSelector.LockCard(); break; } case 1: { //Prioritize BLUE-GOLD-RED; if (blueLock) { CardSelector.LockCard(); } else if (goldLock) { CardSelector.JumpToCard(Cards.Blue); } else if (redLock) { CardSelector.LockCard(); } break; } case 2: { //Prioritize RED-BLUE-GOLD; if (blueLock) { CardSelector.LockCard(); } else if (goldLock) { CardSelector.JumpToCard(Cards.Red); } else if (redLock) { CardSelector.LockCard(); } break; } case 3: { //Prioritize GOLD-BLUE-RED; if (blueLock) { CardSelector.LockCard(); } else if (goldLock) { CardSelector.LockCard(); } else if (redLock) { CardSelector.JumpToCard(Cards.Yellow); } break; } case 4: { //Prioritize GOLD-RED-BLUE; if (blueLock) { CardSelector.JumpToCard(Cards.Red); } else if (goldLock) { CardSelector.LockCard(); } else if (redLock) { CardSelector.LockCard(); } break; } } } } } }
internal static void Execute() { var wMana = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).ManaCost; var qMana = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).ManaCost; var jungle = SebbyLib.Cache.GetMinions(ObjectManager.Player.ServerPosition, 700, MinionTeam.Neutral); if (!jungle.Any() || jungle.FirstOrDefault() == null) { return; } if (Spells._w.IsReadyPerfectly()) { if (jungle.Any(x => x.Name.StartsWith("SRU_Baron") || x.Name.StartsWith("SRU_Dragon"))) { switch (CardSelector.Status) { case SelectStatus.Ready: { CardSelector.StartSelecting(Cards.Blue); break; } case SelectStatus.Selecting: { CardSelector.JumpToCard(Cards.Blue); break; } } } else { var combinedManaPercent = (ObjectManager.Player.MaxMana / (wMana + qMana)); if (ObjectManager.Player.ManaPercent >= Math.Max(45, 20 + combinedManaPercent)) { var targetAoE = jungle.Count(x => x.Distance(jungle.FirstOrDefault()) <= 250); if (targetAoE > 2) { switch (CardSelector.Status) { case SelectStatus.Ready: { CardSelector.StartSelecting(Cards.Red); break; } case SelectStatus.Selecting: { CardSelector.JumpToCard(Cards.Red); break; } } } else { if (jungle.FirstOrDefault().HealthPercent >= 70 && ObjectManager.Player.HealthPercent < 50) { switch (CardSelector.Status) { case SelectStatus.Ready: { CardSelector.StartSelecting(Cards.Yellow); break; } case SelectStatus.Selecting: { CardSelector.JumpToCard(Cards.Yellow); break; } } } else { CardSelector.StartSelecting(Cards.Blue); } } } else { CardSelector.StartSelecting(Cards.Blue); } } } if (Spells._q.IsReadyPerfectly()) { if (ObjectManager.Player.Mana - qMana >= wMana) { var target = jungle.FirstOrDefault(x => x.IsValidTarget(Spells._q.Range)); if (target != null) { Spells._q.Cast(target); } } } }