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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user