Skip to content

Commit

Permalink
Merge pull request #60 from Game-as-a-Service/feat/other-player-owl-s…
Browse files Browse the repository at this point in the history
…uccess-status

feat: 調整施放貓頭鷹時其他玩家的遊戲狀態不會更新的問題
  • Loading branch information
chiumomo authored Oct 17, 2024
2 parents 0f7763d + e2cdefd commit a1bfc33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/stores/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,13 @@ export const useGameStore = defineStore('useGameStore', () => {
updateTmpGameStatus(status)
} else if (status.event_name === 'spell_owl') {
console.log('select secret')
updateTmpGameStatus(status)
if (myTurn.value){
updateTmpGameStatus(status)
updateShowSecretTable(true)
} else {
setGameStatus(status)
processing.value = false
processGameStatus()
}
} else {
setGameStatus(status)
Expand Down

0 comments on commit a1bfc33

Please sign in to comment.