public static void Flee() { if (Config.FleeMenu.IsChecked("flee.useJump") && Game.MapId == GameMapId.SummonersRift) { var spot = WallJump.GetJumpSpot(); if (spot != null && Spells.Q.IsReady()) { Orbwalker.DisableAttacking = true; Orbwalker.DisableMovement = true; WallJump.JumpWall(); return; } } if (Config.FleeMenu.IsChecked("flee.attack")) { Orbwalker.DisableAttacking = false; Orbwalker.DisableMovement = false; var target = ObjectManager.Get <Obj_AI_Base>() .FirstOrDefault( x => x.IsValidTarget(Player.Instance.GetAutoAttackRange()) && !x.IsMe && !x.IsAlly); Orbwalker.ForcedTarget = target; } }
public static void OnLoadingComplete(EventArgs args) { if (Player.Instance.ChampionName != "Kalista") { return; } Spells.InitSpells(); Items.InitItems(); if (Game.MapId == GameMapId.SummonersRift) { WallJump.InitSpots(); } Config.Initialize(); InitEvents(); }