Skip to content

Commit

Permalink
fix round_stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Await-0x committed Mar 5, 2025
1 parent 533cbde commit 6793631
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/src/contexts/battleContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export const BattleProvider = ({ children }) => {

setActions([])
setUpdatedValues()
setRoundStats({})

}

const endBattle = async () => {
Expand Down Expand Up @@ -497,6 +497,12 @@ export const BattleProvider = ({ children }) => {
setBoard(formatBoard(board))
}

setRoundStats({
monsterStartHealth: data.battle.monster.health,
creaturesPlayed: 0,
creatureAttackCount: 0
})

setResettingState(false)
}

Expand Down

0 comments on commit 6793631

Please sign in to comment.