From f8773a0803360e6c2e4ceb548dcc1d83540eaa39 Mon Sep 17 00:00:00 2001 From: Erik Lunna Date: Tue, 7 Jan 2025 09:23:30 -0500 Subject: [PATCH] Stop occupations when the hero is caught in a poison gas cloud (reported by Loggers_VIII). --- src/region.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/region.c b/src/region.c index 2cb1c9b72..e45c143ba 100644 --- a/src/region.c +++ b/src/region.c @@ -1129,6 +1129,7 @@ inside_gas_cloud(genericptr_t p1, genericptr_t p2) return FALSE; /* if no damage then there's nothing to do here... */ if (!mtmp) { /* hero is indicated by Null rather than by &youmonst */ + stop_occupation(); if (!rn2(5)) erode_armor(&gy.youmonst, ERODE_ROT); else if (!rn2(3)) @@ -1142,7 +1143,7 @@ inside_gas_cloud(genericptr_t p1, genericptr_t p2) } if (Breathless) return FALSE; - + if (!fully_resistant(POISON_RES) && !No_gas_damage) { pline("%s is burning your %s!", Something, makeplural(body_part(LUNG)));