public bool CanMove(OrbwalkerMode mode) { if (mode == null) { return(false); } if (!this.MovingEnabled || !mode.MovingEnabled) { return(false); } if (Player.Distance(Game.CursorPos) < this.HoldPositionRadius) { return(false); } if (NoCancelChamps.Contains(Player.ChampionName)) { return(true); } if (this.IsWindingUp) { return(false); } return(true); }
public bool CanAttack(OrbwalkerMode mode) { if (mode == null) { return(false); } if (!this.AttackingEnabled || !mode.AttackingEnabled) { return(false); } if (Player.HasBuffOfType(BuffType.Polymorph)) { return(false); } if (Player.HasBuffOfType(BuffType.Blind) && !_noWasteAttackChamps.Contains(Player.ChampionName)) { return(false); } if (Player.ChampionName.Equals("Jhin") && Player.HasBuff("JhinPassiveReload")) { return(false); } if (Player.ChampionName.Equals("Graves") && !Player.HasBuff("GravesBasicAttackAmmo1")) { return(false); } if (!NoCancelChamps.Contains(Player.ChampionName)) { return(!this.IsWindingUp && this.AttackReady); } if (Player.ChampionName.Equals("Kalista") && Config["Misc"]["KalistaFly"].Enabled) { return(true); } return(!this.IsWindingUp && this.AttackReady); }