From b25961fb131944353070be27a92accbd662673a0 Mon Sep 17 00:00:00 2001 From: PatR Date: Wed, 29 Jun 2022 18:08:50 -0700 Subject: [PATCH] pull request #792 - pet w/ engulf+digest \ can gain intrinsics by swallowing monsters whole Pull request #792 from entrez: monsters can gain instrinsics now but the case for an engulfer digesting a live monster was overlooked. Add the same for non-pet monsters digesting other monsters, likely under the influence of conflict but possibly counter-attacking a pet. Closes #792 --- src/mhitm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mhitm.c b/src/mhitm.c index a32edca54..3eef6b1f9 100644 --- a/src/mhitm.c +++ b/src/mhitm.c @@ -969,6 +969,7 @@ mdamagem(struct monst *magr, struct monst *mdef, } else if (pd == &mons[PM_NURSE]) { magr->mhp = magr->mhpmax; } + mon_givit(magr, pd); } /* caveat: above digestion handling doesn't keep `pa' up to date */