Mitigates #10
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import goStore from '~/netcode';
|
||||
import type { Player } from '~/netcode/Player';
|
||||
|
||||
const current_players = computed<Array<Player>>(() => Array.from(goStore.players.values()).filter(p => p.team === goStore.current_game?.current_turn))
|
||||
const current_players = computed<Array<Player>>(() => Array.from(goStore.current_game?.players ?? []).filter(p => p.team === goStore.current_game?.current_turn))
|
||||
|
||||
const discard_unwrapped = ref<boolean>(false)
|
||||
</script>
|
||||
|
||||
@@ -93,6 +93,7 @@ const prepare_champion = (target: Card) => run_effect(CardEffects.PREPARE, targe
|
||||
<div id="player_stats">
|
||||
<PlayerStats :player="props.player"></PlayerStats>
|
||||
</div>
|
||||
<div v-if="props.player.ready && !goStore.current_game?.started">READY</div>
|
||||
</div>
|
||||
<div id="current_player_board">
|
||||
<button @click.stop="damage_team(props.player.team)"
|
||||
|
||||
@@ -13,6 +13,7 @@ export interface PlayerNetcode extends GameObjectNetcode {
|
||||
turn: string
|
||||
discord_id?: string
|
||||
image?: string
|
||||
ready: boolean
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user