From b61aa235c70fb94953e0f23f43be8502d8d77053 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 8 Apr 2023 21:24:10 +0300 Subject: [PATCH] Items thrown by monsters landing on an altar --- doc/fixes3-7-0.txt | 1 + src/do.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 5c7b8b72b..03712543f 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1132,6 +1132,7 @@ falling into lava, being life-saved, and teleporting out could yield redundant if hero had passes-walls capability and was at the location of a closed door, attempting to use 'o' on own spot reported "you don't find anything here to loot"; change to open door for '.' (or '<'), only loot for '>' +items thrown by monster landing on an altar did not show BUC flash Fixes to 3.7.0-x General Problems Exposed Via git Repository diff --git a/src/do.c b/src/do.c index 937f957ab..822c9ec99 100644 --- a/src/do.c +++ b/src/do.c @@ -299,6 +299,8 @@ flooreffects(struct obj *obj, coordxy x, coordxy y, const char *verb) (void) obj_meld(&obj, &otmp); } res = (boolean) !obj; + } else if (IS_ALTAR(levl[x][y].typ) && cansee(x,y)) { + doaltarobj(obj); } gb.bhitpos = save_bhitpos; @@ -314,7 +316,7 @@ doaltarobj(struct obj *obj) if (obj->oclass != COIN_CLASS) { /* KMH, conduct */ - if (!u.uconduct.gnostic++) + if (!gc.context.mon_moving && !u.uconduct.gnostic++) livelog_printf(LL_CONDUCT, "eschewed atheism, by dropping %s on an altar", doname(obj));