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.
This commit is contained in:
Pasi Kallinen
2023-05-23 19:24:16 +03:00
parent 4761bf190e
commit 39530f9228

View File

@@ -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