theme room vampire fix

From a reddit thread:  a 'mausoleum' theme room picked a vampire for
its occupant and applied the wait-for-you strategy to it.  Hero's ESP
or monster detection showed a meditating vampire bat.  Change monster
creation by the special level loader (which also handles theme rooms)
to force such a creature into its normal vampire form.

That revealed an older bug which wouldn't have been exercized prior
to theme rooms:  a meditating vampire could and would shape change
without ceasing meditation.  Make it not shape change rather come out
of its trance.
This commit is contained in:
PatR
2024-03-11 17:40:01 -07:00
parent 51eea440dc
commit 1922dd96eb
2 changed files with 6 additions and 1 deletions

View File

@@ -4476,7 +4476,7 @@ decide_to_shapeshift(struct monst *mon, int shiftflags)
/* regular shapeshifter */
if (!rn2(6))
dochng = TRUE;
} else {
} else if (!(mon->mstrategy & STRAT_WAITFORU)) {
/* The vampire has to be in good health (mhp) to maintain
* its shifted form.
*