Skip to content

Commit

Permalink
quit when deck error
Browse files Browse the repository at this point in the history
  • Loading branch information
mercury233 committed Sep 11, 2024
1 parent 4c4c5c6 commit b0a420e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Game/GameAI.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Linq;
using System.Collections.Generic;
using System.Threading;
using WindBot.Game.AI;
using YGOSharp.OCGWrapper.Enums;

Expand Down Expand Up @@ -48,6 +49,9 @@ public void OnRetry()
public void OnDeckError(string card)
{
_dialogs.SendDeckSorry(card);
Thread.Sleep(1000);
_dialogs.SendSurrender();
Game.Connection.Close();
}

/// <summary>
Expand Down

0 comments on commit b0a420e

Please sign in to comment.