aboutsummaryrefslogtreecommitdiff
path: root/go/game
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-08 12:00:49 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:50:08 +0200
commit39ce353b61d12f0e5bd31f83d7042bcfa7d8a364 (patch)
tree1256039a3fec8ceba65d457c9c6af2f334094632 /go/game
parenta42dc950d37a06365595d9373fc6b09d0f9a0255 (diff)
downloadmuhqs-game-39ce353b61d12f0e5bd31f83d7042bcfa7d8a364.tar.gz
muhqs-game-39ce353b61d12f0e5bd31f83d7042bcfa7d8a364.zip
fix card IsPermanent
Diffstat (limited to 'go/game')
-rw-r--r--go/game/card.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/go/game/card.go b/go/game/card.go
index c24e7585..c1c74490 100644
--- a/go/game/card.go
+++ b/go/game/card.go
@@ -307,9 +307,9 @@ func (c *Card) Path() string {
func (c *Card) IsPermanent() bool {
return c.Type == CardTypes.Unit ||
- c.Type != CardTypes.Artifact ||
- c.Type != CardTypes.Equipment ||
- c.Type != CardTypes.Potion
+ c.Type == CardTypes.Artifact ||
+ c.Type == CardTypes.Equipment ||
+ c.Type == CardTypes.Potion
}
func (c *Card) IsBuyable() bool {