Add SitOut status to ability to stand from table

This commit is contained in:
nak 2026-03-18 08:18:46 +00:00
parent f867753c4a
commit bedfb64103

View file

@ -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")
}