From: cohrs Date: Tue, 2 Sep 2003 03:48:34 +0000 (+0000) Subject: monster hp loss with Stormbringer X-Git-Tag: MOVE2GIT~1821 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3444083f28e2fb76ac72cd85fc71652cadc8308d;p=nethack monster hp loss with Stormbringer forwarded from rgrn that a monster using Stormbringer would lose hp when hitting the player. The sign of the "gain" was reversed due to subtracting the difference in the wrong order. --- diff --git a/doc/fixes34.3 b/doc/fixes34.3 index 71ea15be1..de130d9b3 100644 --- a/doc/fixes34.3 +++ b/doc/fixes34.3 @@ -2,6 +2,7 @@ $RCSfile$ $Revision$ $Date$ General Fixes and Modified Features ----------------------------------- +monster draining the player using Stormbringer decreased monster's hitpoints Platform- and/or Interface-Specific Fixes diff --git a/src/artifact.c b/src/artifact.c index bb70d9b93..a624e5e5a 100644 --- a/src/artifact.c +++ b/src/artifact.c @@ -1157,7 +1157,7 @@ int dieroll; /* needed for Magicbane and vorpal blades */ The(distant_name(otmp, xname))); losexp("life drainage"); if (magr && magr->mhp < magr->mhpmax) { - magr->mhp += (u.uhpmax - oldhpmax)/2; + magr->mhp += (oldhpmax - u.uhpmax)/2; if (magr->mhp > magr->mhpmax) magr->mhp = magr->mhpmax; } return TRUE;