don't heal units on recall.
There is no reason to do so since units get already healed when advancing to the next scenario. Not healing the unit gives more flexibility to wml authors who might want the player to be able to recall injured units by modifying the hp of a recall list unit or by using `[put_to_recall_list] heal=no` Furthermore this also doesn't match what is shown in the recall dialog. Fixes #4888
This commit is contained in:
parent
f02a99785c
commit
658fb2937c
1 changed files with 3 additions and 1 deletions
|
@ -619,7 +619,9 @@ place_recruit_result place_recruit(unit_ptr u, const map_location &recruit_locat
|
|||
u->set_movement(0, true);
|
||||
u->set_attacks(0);
|
||||
}
|
||||
u->heal_fully();
|
||||
if(!is_recall) {
|
||||
u->heal_fully();
|
||||
}
|
||||
u->set_hidden(true);
|
||||
|
||||
// Get the leader location before adding the unit to the board.
|
||||
|
|
Loading…
Add table
Reference in a new issue