diff --git a/components/PlayerSlot.vue b/components/PlayerSlot.vue index 69d5b28..3b73f02 100644 --- a/components/PlayerSlot.vue +++ b/components/PlayerSlot.vue @@ -97,7 +97,9 @@ function damage_team_all(team: Team) { } } - +function check_for_guard(player: Player) { + return player.board.some(c => c.guard === true) +}