aboutsummaryrefslogtreecommitdiff
path: root/go/game/artifact.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-07-19 19:28:52 -0400
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:57:26 +0200
commite58d14f6e2efe7518bc693ced6e72bdda4c8f35e (patch)
treeb7f4aebb48432bad71fa428328f48352fff0e8a0 /go/game/artifact.go
parenta17b7d9f4db676baedd7d580adc9c26cf9f2d541 (diff)
downloadmuhqs-game-e58d14f6e2efe7518bc693ced6e72bdda4c8f35e.tar.gz
muhqs-game-e58d14f6e2efe7518bc693ced6e72bdda4c8f35e.zip
fix broken permanent initializations
Diffstat (limited to 'go/game/artifact.go')
-rw-r--r--go/game/artifact.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/go/game/artifact.go b/go/game/artifact.go
index 81692346..9bf653ef 100644
--- a/go/game/artifact.go
+++ b/go/game/artifact.go
@@ -17,7 +17,9 @@ func NewArtifactFromPath(cardPath string, tile *Tile, owner *Player) *Artifact {
}
func NewArtifact(card *Card, tile *Tile, owner *Player) *Artifact {
- a := &Artifact{newPermanentBase(card, tile, owner), 0}
+ a := &Artifact{
+ permanentBase: permanentBase{card: card, owner: owner, controller: owner},
+ }
effects := card.getEffects()
for _, e := range effects {