Skip to content

Commit

Permalink
Fix bz51: Revived unique inherits corpse name
Browse files Browse the repository at this point in the history
  • Loading branch information
paxed committed Jan 15, 2016
1 parent 8efec0a commit 9b4d523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/trap.c
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/zap.c
Expand Up @@ -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)
Expand Down

0 comments on commit 9b4d523

Please sign in to comment.