Removed [full_heal]
This commit is contained in:
parent
3c1bead96f
commit
ae0a2fe2cc
3 changed files with 9 additions and 22 deletions
|
@ -274,7 +274,7 @@ Version 1.13.0-dev:
|
|||
between random and non-random music play (bug #19653)
|
||||
* Fixed a bug that prevented [animate_unit] from displaying death or victory
|
||||
animations for those units that filter them based on weapon (eg. Wose)
|
||||
* New WML tags: [full_heal] and [put_to_recall_list].
|
||||
* New WML tags: [put_to_recall_list] and [sync_variable].
|
||||
* Fixed nested macros emitting incorrect bindings to the default 'wesnoth'
|
||||
textdomain at the end of a substitution instead of the parent textdomain,
|
||||
this breaking localization of subsequent strings (bug #22962).
|
||||
|
@ -283,7 +283,6 @@ Version 1.13.0-dev:
|
|||
* force_lock_settings defaults to yes in [scenario].
|
||||
* Moved all preprocessor diagnostics from the 'config' log domain to
|
||||
'preprocessor'.
|
||||
* New WML tag [sync_variable]
|
||||
* Imagepath function "~SEPIA": gives the image a sepia tint
|
||||
* Imagepath function "~NEG": gives the image a photographic negative effect
|
||||
* Dropped support for [filter_side] in [gold] and [modify_ai], [theme] name=
|
||||
|
|
|
@ -365,9 +365,14 @@
|
|||
#enddef
|
||||
|
||||
#define FULL_HEAL FILTER
|
||||
[full_heal]
|
||||
{FILTER}
|
||||
[/full_heal]
|
||||
[heal_unit]
|
||||
[filter]
|
||||
{FILTER}
|
||||
[/filter]
|
||||
|
||||
amount=full
|
||||
restore_statuses=yes
|
||||
[/heal_unit]
|
||||
#enddef
|
||||
|
||||
#define PUT_TO_RECALL_LIST FILTER
|
||||
|
|
|
@ -1316,23 +1316,6 @@ function wml_actions.put_to_recall_list(cfg)
|
|||
end
|
||||
end
|
||||
|
||||
function wml_actions.full_heal(cfg)
|
||||
local units = wesnoth.get_units(cfg)
|
||||
|
||||
for i, unit in ipairs(units) do
|
||||
if (not unit.status.unhealable) or cfg.ignore_status then
|
||||
unit.hitpoints = unit.max_hitpoints
|
||||
if cfg.cures then
|
||||
unit.status.poisoned = false
|
||||
unit.status.slowed = false
|
||||
end
|
||||
if cfg.animate then
|
||||
wesnoth.animate_unit({ flag = "healed" , with_bars = "yes" , { "filter" , { id = unit.id } } })
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function wml_actions.allow_undo(cfg)
|
||||
wesnoth.allow_undo()
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue