wmllint: don't consider [special_note] tags, only NOTE macros

Fixes the warnings for Swordsman and Royal Guard units listed in #4494
This commit is contained in:
Elvish_Hunter 2019-11-13 22:17:48 +01:00
parent fda3c9af75
commit 83ce0480c7

View File

@ -1530,8 +1530,6 @@ def global_sanity_check(filename, lines):
temp_movetypes = []
temp_races = []
temp_advances = []
elif nav.element == "[special_note]":
has_special_notes = True
# the glob pattern matches any WML tag starting with filter, including [filter] itself
if '[unit_type]' in nav.ancestors() and not nav.glob_ancestors("[[]filter*[]]"):
try: