Don't complain that a [unit] misses a side key...
...if it's located in a [side] tag
This commit is contained in:
parent
1cb38145f8
commit
f051dbedfd
1 changed files with 1 additions and 1 deletions
|
@ -544,7 +544,7 @@ def validate_on_pop(tagstack, closer, filename, lineno):
|
|||
if closer == "terrain" and attributes.get("heals") in ("true", "false"):
|
||||
print '"%s", line %d: heals attribute no longer takes a boolean' % \
|
||||
(filename, lineno)
|
||||
if closer == "unit" and attributes.get("id") is not None and attributes.get("type") is not None and attributes.get("side") is None:
|
||||
if closer == "unit" and attributes.get("id") is not None and attributes.get("type") is not None and attributes.get("side") is None and not "side" in ancestors:
|
||||
print '"%s", line %d: unit declaration without side attribute' % \
|
||||
(filename, lineno)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue