bugfix: smartfold skips own turn
This commit is contained in:
parent
af3dd704e9
commit
3a785dd858
1 changed files with 5 additions and 2 deletions
|
@ -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');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue