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:
Enno Rehling 2014-08-28 20:01:37 +02:00
parent c0230d2662
commit e9abfc0f24
1 changed files with 1 additions and 1 deletions

View File

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