diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-08 12:00:49 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-02-08 12:00:49 +0100 |
| commit | 790ee357bbabde8482f068e5d172115fdcea96f9 (patch) | |
| tree | 4456fc9593d07562d2ae63fd0b18ca94e8e9af41 | |
| parent | 165a153201f2630694b02b6b0918f47298d24787 (diff) | |
| download | muhqs-game-790ee357bbabde8482f068e5d172115fdcea96f9.tar.gz muhqs-game-790ee357bbabde8482f068e5d172115fdcea96f9.zip | |
fix card IsPermanent
| -rw-r--r-- | go/game/card.go | 6 |
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 { |
