Revert "Add checking for correct status in crash game"

This reverts commit 3912f4c313.
This commit is contained in:
Hepatica
2024-04-21 15:31:04 +02:00
parent 3912f4c313
commit f2573a5f3b

View File

@@ -144,13 +144,13 @@ export default {
console.error(e)
}
if (this.crashObject.Status === 'MoneyPaid' && this.startGame === true && this.crashObject.Players.some(player => player.UserName === GetCookie('SpUserName'))) {
if (this.crashObject.Status === 'GameEnd' && this.startGame === true && this.crashObject.Players.some(player => player.UserName === GetCookie('SpUserName'))) {
this.startGame = false
this.updateUserMoney()
}
if (
this.crashObject.Players.some(player =>
player.UserName === GetCookie('SpUserName') && (player.UserGameState !== 'Win'|| player.UserGameState !== 'MoneyPaid')
player.UserName === GetCookie('SpUserName') && player.UserGameState !== 'Win'
) &&
this.startGame === false &&
this.crashObject.Status !== 'GameEnd'