Skip to content

Commit

Permalink
Merge pull request #266 from tomarai/fix-evilguesser-guess
Browse files Browse the repository at this point in the history
Fix Evil Guesser cannot guess
  • Loading branch information
dwd0tcom authored Dec 16, 2021
2 parents 38c6b7a + 75d66ef commit 778b9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TheOtherRoles/TheOtherRoles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ public static void clear (byte playerId) {

public static int remainingShots(byte playerId, bool shoot = false) {
int remainingShots = remainingShotsEvilGuesser;
if (niceGuesser.PlayerId == playerId) {
if (niceGuesser != null && niceGuesser.PlayerId == playerId) {
remainingShots = remainingShotsNiceGuesser;
if (shoot) remainingShotsNiceGuesser = Mathf.Max(0, remainingShotsNiceGuesser - 1);
} else if (shoot) {
Expand Down

0 comments on commit 778b9df

Please sign in to comment.