extended [petrify] and [unpetrify] to also work on recall list units
This commit is contained in:
parent
8c3884cbca
commit
1838992e5d
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue