bug 2674 send message to player, not monsters

This commit is contained in:
Enno Rehling 2020-06-27 10:13:37 +02:00
parent ed0b7f8af2
commit 40493bdc64
1 changed files with 2 additions and 1 deletions

View File

@ -83,9 +83,10 @@ static void chaos(region * r, faction *monsters)
case 0: /* Untote */
if (!(r->terrain->flags & SEA_REGION)) {
unit *u = random_unit(r);
faction * f = u->faction;
if (u && !undeadrace(u_race(u))) {
if (join_monsters(u, monsters)) {
ADDMSG(&u->faction->msgs, msg_message("chaos_disease", "unit", u));
ADDMSG(&f->msgs, msg_message("chaos_disease", "unit", u));
u_setrace(u, get_race(RC_GHOUL));
}
}