Fix bz51: Revived unique inherits corpse name

This commit is contained in:
Pasi Kallinen
2016-01-15 22:02:41 +02:00
parent 8efec0a547
commit 9b4d52397c
2 changed files with 2 additions and 2 deletions

View File

@@ -635,7 +635,7 @@ int *fail_reason;
else if (statue->spe & STATUE_FEMALE)
mon->female = TRUE;
/* if statue has been named, give same name to the monster */
if (has_oname(statue))
if (has_oname(statue) && !unique_corpstat(mon->data))
mon = christen_monst(mon, ONAME(statue));
/* mimic statue becomes seen mimic; other hiders won't be hidden */
if (mon->m_ap_type)

View File

@@ -831,7 +831,7 @@ boolean by_hero;
}
/* monster retains its name */
if (has_oname(corpse))
if (has_oname(corpse) && !unique_corpstat(mtmp->data))
mtmp = christen_monst(mtmp, ONAME(corpse));
/* partially eaten corpse yields wounded monster */
if (corpse->oeaten)