From 9390a844f0c16cb866fbe145510f9e32e095cce7 Mon Sep 17 00:00:00 2001 From: PatR Date: Thu, 26 Sep 2024 23:29:32 -0700 Subject: [PATCH] green dragon/iron golem breath A poison gas breath attack that hits a wall would leave a 1x1 gas cloud region at that wall spot. Not always noticeable due to other spots along the zap path leaving regions that blocked vision. --- doc/fixes3-7-0.txt | 2 ++ src/zap.c | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 8ad654c8c..04c24d09c 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -2041,6 +2041,8 @@ priestname() didn't handle "a" vs" "an" prefix correctly; normally priests are incant ." non-fireproof water walking boots wouldn't be burnt up if fire resistant hero walked on molten lava +1x1 poison gas clouds for green dragon and iron golem breath could be placed + at wall locations Fixes to 3.7.0-x Platform and/or Interface Problems Exposed Via git Repository diff --git a/src/zap.c b/src/zap.c index 6a83399df..f649436a7 100644 --- a/src/zap.c +++ b/src/zap.c @@ -5233,8 +5233,10 @@ zap_over_floor( case ZT_POISON_GAS: /* poison gas with range 1: green dragon/iron golem breath (AD_DRST); - caller is placing a series of 1x1 clouds along the zap's path */ - (void) create_gas_cloud(x, y, 1, 8); + caller is placing a series of 1x1 clouds along the zap's path; + for wall locations might be included--reject those */ + if (ZAP_POS(lev->typ)) + (void) create_gas_cloud(x, y, 1, 8); break; case ZT_LIGHTNING: