]> granicus.if.org Git - nethack/commitdiff
oil burning secret door described as spell #771
authornhmall <nhmall@nethack.org>
Mon, 23 May 2022 17:25:12 +0000 (13:25 -0400)
committernhmall <nhmall@nethack.org>
Mon, 23 May 2022 17:25:12 +0000 (13:25 -0400)
Closes #771

src/zap.c

index 8ae2d513c3251f52d77e9c5f8e26e33b371ff01a..3ac786dc7978083166c9cf5c4f1aaeaf16bbe6a0 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -4830,6 +4830,10 @@ zap_over_floor(xchar x, xchar y, int type, boolean *shopdamage,
     if (!exploding_wand_typ) {
         if (abs(type) < ZT_SPELL(0))
             zapverb = "bolt"; /* wand zap */
+        /* kludge check:
+           ZT_SPELL(ZT_FIRE) = ZT_SPELL(AD_FIRE-1) = 10+(2-1) = 11 */
+        else if (type == (ZT_SPELL(AD_FIRE - 1)))
+            yourzap = FALSE;  /* and leave zapverb as "blast" */
         else if (abs(type) < ZT_BREATH(0))
             zapverb = "spell";
     }