]> granicus.if.org Git - nethack/commitdiff
Fix bz51: Revived unique inherits corpse name
authorPasi Kallinen <paxed@alt.org>
Fri, 15 Jan 2016 20:02:41 +0000 (22:02 +0200)
committerPasi Kallinen <paxed@alt.org>
Fri, 15 Jan 2016 20:02:46 +0000 (22:02 +0200)
src/trap.c
src/zap.c

index 91bc589d331a7522917ee69c59d1070529111727..4a065d1ef42e5bfcbd686faf337edd078a649372 100644 (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)
index 4f3dc57072954a120775d0e5dec9a44ba37e5d1e..31d6c233178f383c647340444a02815718e95278 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -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)