From 39530f9228bfb101ffe470b6544669f63afb8e24 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Tue, 23 May 2023 19:24:16 +0300 Subject: [PATCH] Fix the mind flayer attacking without knowing your location This was caused by the mind flayer mind blasting polymorphed hero, causing them to revert back to human form, and dropping into a pool, doing an automatic teleport to save them from drowning. After that the mind flayer tried to hit them in melee, but the hero was far away. Recalculate the nearby and inrage variables after mind blast. --- src/monmove.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/monmove.c b/src/monmove.c index b9108bd4e..b905ad808 100644 --- a/src/monmove.c +++ b/src/monmove.c @@ -719,6 +719,7 @@ dochug(register struct monst* mtmp) /* mind flayers can make psychic attacks! */ } else if (is_mind_flayer(mdat) && !rn2(20)) { mind_blast(mtmp); + distfleeck(mtmp, &inrange, &nearby, &scared); } /* If monster is nearby you, and has to wield a weapon, do so. This