fix cuffs

This commit is contained in:
Branden J Brown 2024-02-03 13:42:56 -06:00
parent c6edf2a92c
commit e2bdf3e23b
2 changed files with 1 additions and 3 deletions

View File

@ -11,7 +11,6 @@ package game
import (
"errors"
"log/slog"
"git.sunturtle.xyz/studio/shotgun/player"
"git.sunturtle.xyz/studio/shotgun/serve"
@ -95,7 +94,6 @@ func (g *Match) NextTurn() {
g.reveal = false
cur := g.CurrentPlayer()
skip := cur.cuffs == CuffedSkip
slog.Info("next turn", "skip", skip, "cuffs", cur.cuffs)
cur.cuffs = cur.cuffs.NextState()
if skip {
g.NextTurn()

View File

@ -46,7 +46,7 @@ func (i Item) Apply(g *Match) bool {
return false
}
g.action = actCuff
opp.cuffs = Cuffed
opp.cuffs = CuffedSkip
return true
case ItemKnife:
if g.damage != 1 {