From 26381228bc196f9a66664e35459ddf8e8e0fa686 Mon Sep 17 00:00:00 2001 From: cohrs Date: Thu, 4 Jul 2002 19:13:10 +0000 Subject: [PATCH] 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. --- doc/fixes34.1 | 1 + src/wizard.c | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index 721dd1bc7..06fb9099b 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -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 diff --git a/src/wizard.c b/src/wizard.c index 56aa1052a..01d5941ac 100644 --- a/src/wizard.c +++ b/src/wizard.c @@ -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);