forked from github/server
peasant blood should not have ill effects on non-demon units that are empty.
This fixes http://bugs.eressea.de/view.php?id=1981
This commit is contained in:
parent
c0230d2662
commit
e9abfc0f24
|
@ -838,7 +838,7 @@ static int
|
|||
use_bloodpotion(struct unit *u, const struct item_type *itype, int amount,
|
||||
struct order *ord)
|
||||
{
|
||||
if (u_race(u) == get_race(RC_DAEMON)) {
|
||||
if (u->number == 0 || u_race(u) == get_race(RC_DAEMON)) {
|
||||
change_effect(u, itype->rtype->ptype, 100 * amount);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue