bugfix: smartfold skips own turn

This commit is contained in:
Maximilian Keßler 2022-10-15 21:07:56 +02:00
parent af3dd704e9
commit 3a785dd858
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -496,8 +496,11 @@ function injectCounter() {
// console.log('my turn!'); // console.log('my turn!');
if (this.Cards.length < 4 && this.Cards.length < message.Table.TableCards.length) { if (this.Cards.length < 4 && this.Cards.length < message.Table.TableCards.length) {
if (otc.smartFold) { if (otc.smartFold) {
console.log('smart fold triggered'); if(this.MustFold) {
ot.action.Fold(); ot.action.Fold();
} else {
console.log('prevented bug by not smartfolding');
}
} }
} }
} }