Address bug #17752:
wmllint wants to apply special notes for commented abilities.
This commit is contained in:
parent
fbceb3085c
commit
a9ed162e55
1 changed files with 6 additions and 3 deletions
|
@ -945,12 +945,15 @@ def global_sanity_check(filename, lines):
|
|||
advances.append((unit_id, filename, nav.lineno+1, advancements))
|
||||
except TypeError:
|
||||
pass
|
||||
if "{SPECIAL_NOTES}" in nav.text:
|
||||
precomment = nav.text
|
||||
if '#' in nav.text:
|
||||
precomment = nav.text[:nav.text.find("#")]
|
||||
if "{SPECIAL_NOTES}" in precomment:
|
||||
has_special_notes = True
|
||||
for (p, q) in notepairs:
|
||||
if p in nav.text:
|
||||
if p in precomment:
|
||||
traits.append(p)
|
||||
if q in nav.text:
|
||||
if q in precomment:
|
||||
notes.append(q)
|
||||
# Detect units that speak in their death events
|
||||
filter_subject = None
|
||||
|
|
Loading…
Add table
Reference in a new issue