Merge pull request #763 from GregoryLundberg/GL_role_missing_role

[role] always error on missing role=
This commit is contained in:
Celtic Minstrel 2016-09-01 22:26:35 -04:00 committed by GitHub
commit 3ca997db1b

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 = {}