コード例 #1
0
        /// <summary>
        ///     Returns true if moving won't cancel the auto-attack and if the champion is able to move.
        /// </summary>
        public static bool CanMove(float extraWindup)
        {
            if (_lastAutoAttackTick <= Variables.TickCount)
            {
                return(Move && !_player.CanCancelAutoAttack()
                    ? (Variables.TickCount - _lastAutoAttackTick > 300)
                    : (Variables.TickCount + Game.Ping / 2 >=
                       _lastAutoAttackTick + _player.AttackCastDelay * 1000 + extraWindup));
            }

            return(false);
        }