Add SitOut status to ability to stand from table
This commit is contained in:
parent
f867753c4a
commit
bedfb64103
1 changed files with 2 additions and 1 deletions
|
|
@ -142,7 +142,8 @@ func (t *Table) Stand(username string) (int64, error) {
|
|||
t.mu.Unlock()
|
||||
return 0, errors.New("not seated")
|
||||
}
|
||||
if t.Hand.Phase != PhaseWaiting && !seat.Folded {
|
||||
// Allow standing if folded OR if marked as disconnected (SitOut mid-hand)
|
||||
if t.Hand.Phase != PhaseWaiting && !seat.Folded && !seat.SitOut {
|
||||
t.mu.Unlock()
|
||||
return 0, errors.New("cannot stand mid-hand while active")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue