forked from github/server
prevent an error when empty units get zombified to protect magic item loss
This commit is contained in:
parent
3dd3761acd
commit
7d5280196a
|
@ -239,6 +239,7 @@ void make_zombie(unit * u)
|
||||||
{
|
{
|
||||||
u_setfaction(u, get_monsters());
|
u_setfaction(u, get_monsters());
|
||||||
scale_number(u, 1);
|
scale_number(u, 1);
|
||||||
|
u->hp = unit_max_hp(u) * u->number;
|
||||||
u_setrace(u, get_race(RC_ZOMBIE));
|
u_setrace(u, get_race(RC_ZOMBIE));
|
||||||
u->irace = NULL;
|
u->irace = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue