SoF: implemented a better fix for the bug about Rugnur not being healed,

...and the units shown harmed in the recall list
This commit is contained in:
Elvish_Hunter 2011-11-26 11:36:21 +00:00
parent 3ef85dee73
commit 78744fa36c
2 changed files with 6 additions and 12 deletions

View file

@ -319,6 +319,12 @@
{FOREACH dwarves i}
{VARIABLE dwarves[$i].x "recall"}
{VARIABLE dwarves[$i].y "recall"}
# to heal them
{VARIABLE dwarves[$i].hitpoints ($dwarves[$i].max_hitpoints)}
{VARIABLE dwarves[$i].moves ($dwarves[$i].max_moves)}
{VARIABLE dwarves[$i].attacks_left ($dwarves[$i].max_attacks)}
{CLEAR_VARIABLE dwarves[$i].status.slowed}
# no need for poisoned and petrified, as Elves do not have units with such abilities
[unstore_unit]
variable=dwarves[$i]

View file

@ -154,18 +154,6 @@
{MOVE_UNIT id=Rugnur 12 7}
# in case that Rugnur was not in perfect shape at the end of Towards the Caves
[heal_unit]
[filter]
id=Rugnur
[/filter]
amount=full
animate=no
moves=full
restore_attacks=yes
restore_statuses=yes
[/heal_unit]
[redraw]
side=1
[/redraw]