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:
gfgtdf 2020-05-04 20:30:19 +02:00 committed by GitHub
parent f02a99785c
commit 658fb2937c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.