fix cuffs
This commit is contained in:
parent
c6edf2a92c
commit
e2bdf3e23b
@ -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()
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user