Commit b0a420e2 authored by mercury233's avatar mercury233

quit when deck error

parent 4c4c5c66
using System.Linq; using System.Linq;
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading;
using WindBot.Game.AI; using WindBot.Game.AI;
using YGOSharp.OCGWrapper.Enums; using YGOSharp.OCGWrapper.Enums;
...@@ -48,6 +49,9 @@ namespace WindBot.Game ...@@ -48,6 +49,9 @@ namespace WindBot.Game
public void OnDeckError(string card) public void OnDeckError(string card)
{ {
_dialogs.SendDeckSorry(card); _dialogs.SendDeckSorry(card);
Thread.Sleep(1000);
_dialogs.SendSurrender();
Game.Connection.Close();
} }
/// <summary> /// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment