skip turn if cuffed

This commit is contained in:
Branden J Brown 2024-01-21 01:22:44 -06:00
parent 18e1793b16
commit 05acb1053f
1 changed files with 4 additions and 0 deletions

View File

@ -68,7 +68,11 @@ func (g *Game) NextTurn() {
g.Damage = 1
g.Reveal = false
cur := g.CurrentPlayer()
skip := cur.Cuffs == CuffedSkip
cur.Cuffs = cur.Cuffs.NextState()
if skip {
g.NextTurn()
}
}
// CurrentPlayer gets the index of the current player, either 0 or 1.