knights and covetous monsters

Implement Pat's suggestion of setting the mavenge flag when a covetous
monster flees, since they may subsequently teleport back and attack even
if mflee is set.
This commit is contained in:
cohrs
2002-07-04 19:13:10 +00:00
parent 2a058618e5
commit 26381228bc
2 changed files with 2 additions and 0 deletions

View File

@@ -144,6 +144,7 @@ player polymorphed as rust monster would lose gold in inventory by
attempting to eat it, even though the eat failed
no messages were printed when dowaterdemon or dowaternymph failed to create
a monster doe to the G_GONE check
knights should be able to avenge attacks from covetous monsters
Platform- and/or Interface-Specific Fixes

View File

@@ -305,6 +305,7 @@ tactics(mtmp)
case STRAT_HEAL: /* hide and recover */
/* if wounded, hole up on or near the stairs (to block them) */
/* unless, of course, there are no stairs (e.g. endlevel) */
mtmp->mavenge = 1; /* covetous monsters attack while fleeing */
if (In_W_tower(mtmp->mx, mtmp->my, &u.uz) ||
(mtmp->iswiz && !xupstair && !mon_has_amulet(mtmp))) {
if (!rn2(3 + mtmp->mhp/10)) rloc(mtmp);