Skip to content

Commit

Permalink
Merge pull request #66 from Game-as-a-Service/fix/spell-fail-bleed-an…
Browse files Browse the repository at this point in the history
…imate

fix: 修復自己施法失敗時沒辦法顯示流血動畫的問題
  • Loading branch information
chiumomo authored Nov 22, 2024
2 parents 40bcf1f + e69383b commit c26f19e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/stores/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ export const useGameStore = defineStore('useGameStore', () => {
} else if (status.event_name === 'spelled_fail') {
updateTmpGameStatus(status)
playFailAnimation()
} else if (status.event_name === 'damage_HP'){
setGameStatus(status)
processing.value = false
setTimeout(() => {
processGameStatus()
}, 1500)
} else if (status.event_name === 'dice_rolled') {
console.log('dice_rolled: ', status.dice_result)
setPlayDice(status.dice_result)
Expand Down Expand Up @@ -207,7 +213,9 @@ export const useGameStore = defineStore('useGameStore', () => {
processing.value = false

restoreGameStatus()
processGameStatus()
setTimeout(() => {
processGameStatus()
}, 1500)
}
const selectSecretEnded = () => {
updateShowSecretTable(false)
Expand Down

0 comments on commit c26f19e

Please sign in to comment.