Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7
This commit is contained in:
@@ -1589,7 +1589,7 @@ artifact_hit(struct monst *magr, struct monst *mdef, struct obj *otmp,
|
|||||||
}
|
}
|
||||||
losexp("life drainage");
|
losexp("life drainage");
|
||||||
if (magr && magr->mhp < magr->mhpmax) {
|
if (magr && magr->mhp < magr->mhpmax) {
|
||||||
magr->mhp += (oldhpmax - u.uhpmax + 1) / 2;
|
magr->mhp += (abs(oldhpmax - u.uhpmax) + 1) / 2;
|
||||||
if (magr->mhp > magr->mhpmax)
|
if (magr->mhp > magr->mhpmax)
|
||||||
magr->mhp = magr->mhpmax;
|
magr->mhp = magr->mhpmax;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user