Android build v1.1.13
This commit is contained in:
@@ -944,24 +944,23 @@ export function PvpStadiumScreen({
|
||||
|
||||
const finishShop = useCallback(() => {
|
||||
if (shopReady || status !== 'shop') return
|
||||
setShopReady(true)
|
||||
submittedShopRef.current = true
|
||||
setPlayerSide((current) => {
|
||||
const next = { ...current, shopReady: true }
|
||||
playerRef.current = next
|
||||
return next
|
||||
})
|
||||
if (liveMatchRef.current) {
|
||||
submitPvpUpgradeChoice(liveMatchRef.current.id, {
|
||||
encounterIndex: roundIndex,
|
||||
buffId: 'stadium-shop',
|
||||
debuffId: '',
|
||||
purchases: playerRef.current.buffs,
|
||||
shopReady: true,
|
||||
}).catch(() => undefined)
|
||||
const liveMatch = liveMatchRef.current
|
||||
if (!liveMatch) {
|
||||
startNextRound()
|
||||
return
|
||||
}
|
||||
startNextRound()
|
||||
setShopReady(true)
|
||||
submittedShopRef.current = true
|
||||
const readyPlayer = { ...playerRef.current, shopReady: true }
|
||||
playerRef.current = readyPlayer
|
||||
setPlayerSide(readyPlayer)
|
||||
submitPvpUpgradeChoice(liveMatch.id, {
|
||||
encounterIndex: roundIndex,
|
||||
buffId: 'stadium-shop',
|
||||
debuffId: '',
|
||||
purchases: playerRef.current.buffs,
|
||||
shopReady: true,
|
||||
}).catch(() => undefined)
|
||||
}, [roundIndex, shopReady, startNextRound, status])
|
||||
|
||||
const { rematchRequested, rematchMessage, handleRematch } = usePvpLiveMatchSync<StadiumSideState, LivePvpMatch>({
|
||||
|
||||
Reference in New Issue
Block a user