Suppress the level-up animation when [transform_unit] is used...
...to transform a unit to its normal advancement (for consistency with transforming to a specified type).
This commit is contained in:
parent
01c20ecea5
commit
ee19578fc4
1 changed files with 1 additions and 1 deletions
|
@ -925,7 +925,7 @@ function wml_actions.transform_unit(cfg)
|
|||
|
||||
unit.experience = unit.max_experience
|
||||
wml_actions.store_unit { { "filter", { id = unit.id } }, variable = "Lua_store_unit", kill = true }
|
||||
wml_actions.unstore_unit { variable = "Lua_store_unit", find_vacant = false, advance = true, fire_event = false }
|
||||
wml_actions.unstore_unit { variable = "Lua_store_unit", find_vacant = false, advance = true, fire_event = false, animate = false }
|
||||
wesnoth.set_variable ( "Lua_store_unit")
|
||||
|
||||
unit.hitpoints = hitpoints
|
||||
|
|
Loading…
Add table
Reference in a new issue