[role] always error on missing role=

This commit is contained in:
Gregory A Lundberg 2016-09-01 20:14:15 -05:00
parent 0cf8a2e71a
commit 65134d6f0f

View file

@ -904,11 +904,7 @@ function wml_actions.role(cfg)
local filter = helper.shallow_literal(cfg)
if role == nil then
if helper.get_child("auto_recall") ~= nil then
role = ""
else
helper.wml_error("missing role= in [role]")
end
helper.wml_error("missing role= in [role]")
end
local types = {}