jaredlyon / JareBot

A revisited JS project
GNU General Public License v3.0
5 stars 1 forks source link

Baiting during blackjack games protects funds #19

Closed jaredlyon closed 4 years ago

jaredlyon commented 4 years ago

User was able to begin a blackjack, fail a bait, then lose the blackjack and get their money back: image

jaredlyon commented 4 years ago

Further testing confirms this is not an edge case: image image

jaredlyon commented 4 years ago

Commit eae8715 hotfixes the issue, but prevents all users from baiting during an ongoing game of blackjack: image

Will look into a user-specific catch, but this issue won't be closed until a final solution is pushed.

jaredlyon commented 4 years ago

Created a global array that adds user IDs upon blackjack initialization to prevent baiting: image *note that the user only lost $5.00 due to passive income gains.