Skip to content

Commit

Permalink
Fix misattack appear in direct attack's rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
Wind2009-Louse committed Oct 12, 2023
1 parent 0b7f70e commit 6b50fed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Game/GameAI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ public IList<ClientCard> OnSelectCard(IList<ClientCard> cards, int min, int max,
// Always select the first available cards and choose the minimum.
IList<ClientCard> selected = new List<ClientCard>();

if (hint == HintMsg.AttackTarget && cancelable) return selected;

if (cards.Count >= min)
{
for (int i = 0; i < min; ++i)
Expand Down

0 comments on commit 6b50fed

Please sign in to comment.