public List <Minion> LoadMinions() { var meleeMinion = new Minion("Melee Minion", 455, 2, 12, 0, 0, 20, 59); meleeMinion.BlueImageURL = "https://vignette.wikia.nocookie.net/leagueoflegends/images/6/65/Blue_Melee_MinionSquare.png/revision/latest/scale-to-width-down/48?cb=20140731204557"; meleeMinion.RedImageURL = "https://vignette.wikia.nocookie.net/leagueoflegends/images/e/ea/Red_Melee_MinionSquare.png/revision/latest/scale-to-width-down/48?cb=20140731204552"; var casterMinion = new Minion("Caster Minion", 308, 1, 22, 0, 0, 17, 29); casterMinion.BlueImageURL = "https://vignette.wikia.nocookie.net/leagueoflegends/images/f/fa/Blue_Caster_MinionSquare.png/revision/latest/scale-to-width-down/48?cb=20140731204553"; casterMinion.RedImageURL = "https://vignette.wikia.nocookie.net/leagueoflegends/images/1/10/Red_Caster_MinionSquare.png/revision/latest/scale-to-width-down/48?cb=20140731204552"; var siegeMinion = new Minion("Siege Minion", 805, 1, 40, 0, 0, 45, 92); siegeMinion.BlueImageURL = "https://vignette.wikia.nocookie.net/leagueoflegends/images/6/6c/Blue_Siege_MinionSquare.png/revision/latest/scale-to-width-down/48?cb=20140731204558"; siegeMinion.RedImageURL = "https://vignette.wikia.nocookie.net/leagueoflegends/images/c/c1/Red_Siege_MinionSquare.png/revision/latest/scale-to-width-down/48?cb=20140731204553"; var superMinion = new Minion("Super Minion", 2000, 1, 190, 30, -30, 40, 97); superMinion.BlueImageURL = "https://vignette.wikia.nocookie.net/leagueoflegends/images/4/4a/Blue_Super_MinionSquare.png/revision/latest/scale-to-width-down/48?cb=20140731204557"; superMinion.RedImageURL = "https://vignette.wikia.nocookie.net/leagueoflegends/images/0/04/Red_Super_MinionSquare.png/revision/latest/scale-to-width-down/48?cb=20140731204553"; MeleeMinion = meleeMinion; CasterMinion = casterMinion; SiegeMinion = siegeMinion; SuperMinion = superMinion; MinionList.Add(meleeMinion); MinionList.Add(casterMinion); MinionList.Add(siegeMinion); MinionList.Add(superMinion); return(MinionList); }
public void InsertMinionToField(Minion minion) { //Pimero vemos si hay espacio para minions if (this.MaxMinions >= this.ActualMinions) { MinionList.Add(minion); this.ActualMinions++; } }
/// <summary> /// Before Attack (Fires before an Orbwalker attack) /// Check if before target is not mini /// </summary> /// <param name="args"></param> internal static void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (KN.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear) { Obj_AI_Minion mob = null; if (MinionList.Any(x => args.Target.Name.StartsWith(x) && !args.Target.Name.Contains("Mini"))) { mob = (Obj_AI_Minion)args.Target; } if (args.Target.Name.Contains("Mini") && mob.IsValidTarget(450)) { args.Process = false; } } }
private static void JungleClear() { foreach (var minion in ObjectManager.Get <Obj_AI_Minion>() .Where( m => MinionList.Any(x => m.Name.StartsWith(x)) && !m.Name.StartsWith("Minion") && !m.Name.Contains("Mini"))) { Orb(minion, "Combo"); if (_cancleave && _q.IsReady() && minion.Distance(Me.ServerPosition) <= _q.Range) { if (_config.Item("usejungleq").GetValue <bool>()) { _q.Cast(minion.ServerPosition); } } if (_cankiburst && _w.IsReady() && minion.Distance(Me.ServerPosition) <= _w.Range) { if (_config.Item("usejunglew").GetValue <bool>()) { _w.Cast(); } } if (_e.IsReady() && _candash) { if (minion.Distance(Me.ServerPosition) <= _e.Range + _q.Range || Me.Health / Me.MaxHealth * 100 <= _config.Item("vhealth").GetValue <Slider>().Value) { if (_config.Item("uselanee").GetValue <bool>()) { _e.Cast(Game.CursorPos); } } } } }
public void AddMinion(NPC minion) { MinionList.Add(minion); }
internal void AddMinion(NPC minion) { MinionList.Add(minion); }
public MainWindow() { InitializeComponent(); minions = new MinionList(); SetupUI(); }