diff --git a/data/lua/core/map.lua b/data/lua/core/map.lua index 4e3516e4d14..fc3d418205f 100644 --- a/data/lua/core/map.lua +++ b/data/lua/core/map.lua @@ -381,6 +381,9 @@ if wesnoth.kernel_type() == "Mapgen Lua Kernel" then ---@param count? integer|string A range list ---@return terrain_filter_tag adjacent = function(f, adj, count) + if type(adj) == 'table' then + adj = stringx.join(',', adj) + end return { "adjacent", f, adjacent = adj, count = count } end, ---Match hexes from a separate list.