Exemplo n.º 1
0
        public override bool PreGame()
        {
            if ((DateTime.Now - _lastAlert).TotalMilliseconds >= _alertDelay)
            {
                _lastAlert     = DateTime.Now;
                _alertCounter += 1;
                challenger.SendMessage($"Waiting for {opponent.Name} to accept...", Color.Cyan);
                opponent.SendMessage(challenger.Name + " has challenged you to a duel! Type '/duel accept' to accept.", Color.Cyan);
            }

            return(_alertCounter < 3 && !opponent.GetDuelAccept());
        }