a simplification of the FULL_HEAL macro
This commit is contained in:
parent
21b0f0bc47
commit
6d8e03be65
1 changed files with 5 additions and 14 deletions
|
@ -301,8 +301,7 @@
|
|||
#enddef
|
||||
|
||||
#define FULL_HEAL FILTER
|
||||
# This heals the specified unit(s) to full health. Does not work on units on
|
||||
# a recall list.
|
||||
# This heals the specified unit(s) to full health.
|
||||
[store_unit]
|
||||
[filter]
|
||||
{FILTER}
|
||||
|
@ -313,18 +312,10 @@
|
|||
[/store_unit]
|
||||
|
||||
{FOREACH FULL_HEAL_temp FULL_HEAL_i}
|
||||
[object]
|
||||
silent=yes
|
||||
|
||||
[filter]
|
||||
x,y=$FULL_HEAL_temp[$FULL_HEAL_i].x,$FULL_HEAL_temp[$FULL_HEAL_i].y
|
||||
[/filter]
|
||||
|
||||
[effect]
|
||||
apply_to=hitpoints
|
||||
heal_full=yes
|
||||
[/effect]
|
||||
[/object]
|
||||
[set_variable]
|
||||
name=FULL_HEAL_temp[$FULL_HEAL_i].hitpoints
|
||||
value=$FULL_HEAL_temp[$FULL_HEAL_i].max_hitpoints
|
||||
[/set_variable]
|
||||
{NEXT FULL_HEAL_i}
|
||||
|
||||
{CLEAR_VARIABLE FULL_HEAL_temp}
|
||||
|
|
Loading…
Add table
Reference in a new issue