Try to fix an effect-lifting bug.
This commit is contained in:
parent
0d62c1622d
commit
a25e4309bf
1 changed files with 9 additions and 7 deletions
|
@ -742,13 +742,15 @@ def hack_syntax(filename, lines):
|
|||
ws = leader(lines[i])
|
||||
outer = outdent(ws)
|
||||
assert attackname != None
|
||||
insertion = outer + "[/effect]\n" \
|
||||
+ outer + "[effect]\n" \
|
||||
+ ws + "apply_to=new_animation\n" \
|
||||
+ ws + "[attack_filter]\n" \
|
||||
+ ws + baseindent + "name=" + attackname +" \n" \
|
||||
+ ws + "[/attack_filter]\n"
|
||||
lines[i] = insertion + lines[i].replace("animation", "attack_anim")
|
||||
before = outer + "[/effect]\n" \
|
||||
+ outer + "[effect]\n" \
|
||||
+ ws + "apply_to=new_animation\n"
|
||||
after = ws + "[attack_filter]\n" \
|
||||
+ ws + baseindent + "name=" + attackname +" \n" \
|
||||
+ ws + "[/attack_filter]\n"
|
||||
lines[i] = before \
|
||||
+ lines[i].replace("animation", "attack_anim") \
|
||||
+ after
|
||||
modcount += 1
|
||||
elif converting and "[/animation]" in lines[i]:
|
||||
lines[i] = lines[i].replace("animation", "attack_anim")
|
||||
|
|
Loading…
Add table
Reference in a new issue