OSDN Git Service

fix #36579
[jnethack/source.git] / src / spell.c
index c7ea47c..752c26d 100644 (file)
@@ -1269,10 +1269,11 @@ boolean atme;
 #if 0 /*JP*/
                             Sprintf(buf, "zapped %sself with a spell",
                                     uhim());
+                            losehp(damage, buf, NO_KILLER_PREFIX);
 #else
                             Strcpy(buf, "\8e©\95ª\8e©\90g\82Ì\96\82\96@\82ð\97\81\82Ñ\82Ä");
+                            losehp(damage, buf, KILLED_BY);
 #endif
-                            losehp(damage, buf, NO_KILLER_PREFIX);
                         }
                     } else {
                         explode(u.dx, u.dy,
@@ -1344,7 +1345,11 @@ boolean atme;
                     Strcpy(buf, "\8e©\95ª\8e©\90g\82Ì\96\82\96@\82ð\97\81\82Ñ\82Ä");
                     if (physical_damage)
                         damage = Maybe_Half_Phys(damage);
+#if 0 /*JP*/
                     losehp(damage, buf, NO_KILLER_PREFIX);
+#else
+                    losehp(damage, buf, KILLED_BY);
+#endif
                 }
             } else
                 weffects(pseudo);