New lifting code for archaic syntaxes does nothing (as it should) on
current mainline WML.
This commit is contained in:
parent
16d26f430f
commit
a8f48da8ea
1 changed files with 3 additions and 1 deletions
|
@ -772,6 +772,7 @@ def hack_syntax(filename, lines):
|
|||
print '"%s", line %d: converting [animation] in [effect] '%(filename, i+1)
|
||||
ws = leader(lines[i])
|
||||
outer = outdent(ws)
|
||||
assert attackname != None
|
||||
insertion = outer + "[/effect]\n" \
|
||||
+ outer + "[effect]\n" \
|
||||
+ ws + "apply_to=new_animation\n" \
|
||||
|
@ -804,7 +805,8 @@ def hack_syntax(filename, lines):
|
|||
comment = fields[1]
|
||||
if syntactic.strip().startswith("name"):
|
||||
attackname = syntactic.split("=")[1].strip()
|
||||
elif "[frame]" in lines[i] and converting == 0:
|
||||
elif "[frame]" in lines[i] and in_attack and converting == 0:
|
||||
assert attackname != None
|
||||
print '"%s", line %d: converting [frame] in [attack] '%(filename, i+1)
|
||||
ws = leader(lines[i])
|
||||
outer = outdent(ws)
|
||||
|
|
Loading…
Add table
Reference in a new issue