diff --git a/src/game/command.cr b/src/game/command.cr index 645fce2..db6f3b0 100644 --- a/src/game/command.cr +++ b/src/game/command.cr @@ -20,6 +20,10 @@ module Game if !world.resources.has(construction.cost) raise NotEnoughtResources.new end + tile = world.map.get @point + if !tile.as?(PlateauTile) + raise InvalidPlaceForBuilding.new + end # @todo check requirements world.map.set(ConstructionSiteTile.new(@point)) construction.ts