From 8fd776573f8f7eb5befc7b8d9106dd258b4ea947 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 24 Jul 2025 05:40:27 -0400 Subject: add boss type as unit specialization --- go/game/unit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'go/game/unit.go') diff --git a/go/game/unit.go b/go/game/unit.go index d1192dc0..75fddf3e 100644 --- a/go/game/unit.go +++ b/go/game/unit.go @@ -27,7 +27,7 @@ type Unit struct { } func NewUnit(card *Card, tile *Tile, owner *Player) *Unit { - if card.Type != CardTypes.Unit { + if !card.Type.IsUnit() { log.Panic(card.Name, " is not a unit") } var movement Movement -- cgit v1.2.3