extended [petrify] and [unpetrify] to also work on recall list units

This commit is contained in:
Anonymissimus 2010-11-14 12:44:24 +00:00
parent 8c3884cbca
commit 1838992e5d

View file

@ -600,6 +600,10 @@ function wml_actions.petrify(cfg)
unit.status.petrified = true
wml_actions.redraw({ side = unit.side }) -- may be unneccessary
end
for index, unit in ipairs(wesnoth.get_recall_units(cfg)) do
unit.status.petrified = true
end
end
function wml_actions.unpetrify(cfg)
@ -607,4 +611,8 @@ function wml_actions.unpetrify(cfg)
unit.status.petrified = false
wml_actions.redraw({ side = unit.side }) -- may be unneccessary
end
for index, unit in ipairs(wesnoth.get_recall_units(cfg)) do
unit.status.petrified = false
end
end