From 571a622d6401abe023e8a16a299a88b8872a1cf0 Mon Sep 17 00:00:00 2001 From: Flowiee <55394031+Flowiee@users.noreply.github.com> Date: Thu, 21 Jan 2021 06:18:26 +0100 Subject: [PATCH] Fix #3 If Dog card is used against a player with only a card the count of that player will be 0 and the UsedUp will be true, but Dog has the peculiarity to give a card in return so the count will be 1 again but UsedUp is still true so players are able to skip Information Exchange. --- CriminalDance/CriminalDanceBot/CriminalDance.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/CriminalDance/CriminalDanceBot/CriminalDance.cs b/CriminalDance/CriminalDanceBot/CriminalDance.cs index f21e3b1..3256db0 100644 --- a/CriminalDance/CriminalDanceBot/CriminalDance.cs +++ b/CriminalDance/CriminalDanceBot/CriminalDance.cs @@ -871,6 +871,7 @@ public void Dog() { UseCard(p2, cardChosen, true); p2.Cards.Add(p.TempCard); //get the dog as compensation + p2.UsedUp = false; //make sure that after getting a card as compensation UsedUp will not be true Send(GetTranslation("DogTransferCard", GetName(p), GetName(p2), GetName(cardChosen))); p.CardChanged = true; p2.CardChanged = true;