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
This commit is contained in:
PatR
2022-06-29 18:08:50 -07:00
parent 0eadf8dfe1
commit b25961fb13

View File

@@ -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 */