From 6e218cd7ef0195001f85aac0d997cf1cfc25a568 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 1 May 2023 17:46:12 +0300 Subject: [PATCH] Fix zapping cancellation at magical trap The exploding magical trap did not cause problems before just by being a magical explosion by accident; adding an object caused the cancellation wand ID to change, and the explosion now had an impossible explosion type. Hardcode trap explosions to generic magical blasts. --- src/explode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/explode.c b/src/explode.c index db6cd603e..5bd14673d 100644 --- a/src/explode.c +++ b/src/explode.c @@ -259,6 +259,8 @@ explode( } else if (olet == SCROLL_CLASS) { /* ditto */ exploding_wand_typ = SCR_FIRE; + } else if (olet == TRAP_EXPLODE) { + type = 0; /* hardcoded to generic magic explosion */ } /* muse_unslime: SCR_FIRE */ if (expltype < 0) {