aboutsummaryrefslogtreecommitdiff
path: root/go/game/unit.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-07-24 05:40:27 -0400
committerFlorian Fischer <florian.fischer@muhq.space>2025-07-24 12:22:10 -0400
commit8fd776573f8f7eb5befc7b8d9106dd258b4ea947 (patch)
tree182dba0fe4356206a14e8d7659fb2c403a6363e8 /go/game/unit.go
parent9175de76012680eb10807380c64156a723d48fae (diff)
downloadmuhqs-game-8fd776573f8f7eb5befc7b8d9106dd258b4ea947.tar.gz
muhqs-game-8fd776573f8f7eb5befc7b8d9106dd258b4ea947.zip
add boss type as unit specialization
Diffstat (limited to 'go/game/unit.go')
-rw-r--r--go/game/unit.go2
1 files changed, 1 insertions, 1 deletions
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