skip turn if cuffed
This commit is contained in:
parent
18e1793b16
commit
05acb1053f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user