aboutsummaryrefslogtreecommitdiff
path: root/go/game/tile.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-01-31 00:16:53 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:45 +0100
commite6a1bb4ba06361abdc2cf1bed4041fe3013b188b (patch)
treec329a9d8d071bd2a5e3d6b5bb531da67ece2b227 /go/game/tile.go
parent24cea3f7c1e3679ba19ed1d49674e1228eb50ce1 (diff)
downloadmuhqs-game-e6a1bb4ba06361abdc2cf1bed4041fe3013b188b.tar.gz
muhqs-game-e6a1bb4ba06361abdc2cf1bed4041fe3013b188b.zip
intermediate commit
Diffstat (limited to 'go/game/tile.go')
-rw-r--r--go/game/tile.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/game/tile.go b/go/game/tile.go
index 9adb1eae..06af795c 100644
--- a/go/game/tile.go
+++ b/go/game/tile.go
@@ -100,10 +100,10 @@ func (t *Tile) IsFree() bool {
}
func (t *Tile) IsAvailableForCard(card *Card) bool {
- if t.Water && !card.hasMovementEffect("swimming") {
+ if t.Water && !card.hasPlacementConstrain("swimming") {
return false
}
- if !t.Water && card.hasMovementEffect("swimming") {
+ if !t.Water && card.hasPlacementConstrain("swimming") {
return false
}
return t.IsFree()