Skip to content

Commit

Permalink
Merge pull request #662 from dorng/patch-1
Browse files Browse the repository at this point in the history
fix [transform_unit]
  • Loading branch information
gfgtdf committed May 27, 2016
2 parents bd69cb2 + 2e5fb7c commit 4b01b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/lua/wml-tags.lua
Expand Up @@ -646,7 +646,7 @@ function wml_actions.transform_unit(cfg)
local status = helper.get_child( unit.__cfg, "status" )

unit.experience = unit.max_experience
wml_actions.advance_unit(unit, false, false)
wesnoth.advance_unit(unit, false, false)

unit.hitpoints = hitpoints
unit.experience = experience
Expand Down

0 comments on commit 4b01b54

Please sign in to comment.