Skip to content

Commit

Permalink
Don't offer castle deployment to remote player
Browse files Browse the repository at this point in the history
  • Loading branch information
farin committed Dec 11, 2020
1 parent f4f6fb8 commit 812a87b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/renderer/components/game/actions/CastlePhaseAction.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<section>
<section :class="{remote: !local}">
<span class="text">{{ local ? 'You are allowed to place' : 'Player is allowed to place' }}</span>
<img src="~/assets/figures/castle.png" height="70">
<slot />
Expand All @@ -26,8 +26,10 @@ export default {
},
mounted () {
this.$root.$on('feature.select', this.onSelect)
this.showLayer()
if (this.local) {
this.$root.$on('feature.select', this.onSelect)
this.showLayer()
}
},
beforeDestroy () {
Expand Down Expand Up @@ -72,4 +74,11 @@ export default {
img
margin: 0 10px 0 30px
.remote img
filter: grayscale(1)
&:hover
filter: none
</style>

0 comments on commit 812a87b

Please sign in to comment.