update wmlunits to the new advances_to syntax

This commit is contained in:
Gunter Labes 2008-08-29 21:30:39 +00:00
parent aac6a79a04
commit a801626793

2
data/tools/unit_tree/helpers.py Normal file → Executable file
View file

@ -299,7 +299,7 @@ class WesnothList:
except KeyError: unit.movetype = None
unit.advance = []
advanceto = unit.get_text_val("advanceto")
advanceto = unit.get_text_val("advances_to")
if advanceto and advanceto != "null":
for advance in advanceto.split(","):
auid = advance.strip()