Follow-up Comment #3, bug #18893 (project wesnoth):
Yes, the previous ABILITY_TELEPORT implementation didn't have any variables
to substitute, so the cfg.get_parsed_config() call in game_events.cpp:1863
substitutes variables too early at a time when the wml variable teleport_unit
isn't yet set.
We should probably eliminate such call pathes in the engine, that is, passing
vconfigs to make variable substitution as late as possible.
(I worked around a similar problem with the [unit] callstack recently.)
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?18893>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs