diff options
Diffstat (limited to 'go/game/unit.go')
| -rw-r--r-- | go/game/unit.go | 2 |
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 |
