Fix bz51: Revived unique inherits corpse name
This commit is contained in:
+1
-1
@@ -635,7 +635,7 @@ int *fail_reason;
|
|||||||
else if (statue->spe & STATUE_FEMALE)
|
else if (statue->spe & STATUE_FEMALE)
|
||||||
mon->female = TRUE;
|
mon->female = TRUE;
|
||||||
/* if statue has been named, give same name to the monster */
|
/* 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));
|
mon = christen_monst(mon, ONAME(statue));
|
||||||
/* mimic statue becomes seen mimic; other hiders won't be hidden */
|
/* mimic statue becomes seen mimic; other hiders won't be hidden */
|
||||||
if (mon->m_ap_type)
|
if (mon->m_ap_type)
|
||||||
|
|||||||
@@ -831,7 +831,7 @@ boolean by_hero;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* monster retains its name */
|
/* monster retains its name */
|
||||||
if (has_oname(corpse))
|
if (has_oname(corpse) && !unique_corpstat(mtmp->data))
|
||||||
mtmp = christen_monst(mtmp, ONAME(corpse));
|
mtmp = christen_monst(mtmp, ONAME(corpse));
|
||||||
/* partially eaten corpse yields wounded monster */
|
/* partially eaten corpse yields wounded monster */
|
||||||
if (corpse->oeaten)
|
if (corpse->oeaten)
|
||||||
|
|||||||
Reference in New Issue
Block a user