Skip to content
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyl18 committed Apr 24, 2018
1 parent 468cf95 commit 774da52
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CardSharp/GameSteps/CommandParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ private bool ParseStandardCommand(Desk desk, Player player, string command)
return true;

case "弃牌":
if (desk.Players.Count(p => p is FakePlayer) == 2)
{
desk.AddMessage("你觉得这样好玩么?");
return true;
}
player.GiveUp = true;
desk.AddMessage("弃牌成功");
return true;
Expand Down

0 comments on commit 774da52

Please sign in to comment.