Use DEADMONSTER instead of checking mhp
This commit is contained in:
@@ -525,7 +525,7 @@ int *dmg_p; /* for dishing out extra damage in lieu of Int loss */
|
||||
if (visflag && canseemon(magr))
|
||||
pline("%s turns to stone!", Monnam(magr));
|
||||
monstone(magr);
|
||||
if (magr->mhp > 0) {
|
||||
if (!DEADMONSTER(magr)) {
|
||||
/* life-saved; don't continue eating the brains */
|
||||
return MM_MISS;
|
||||
} else {
|
||||
@@ -612,7 +612,7 @@ int *dmg_p; /* for dishing out extra damage in lieu of Int loss */
|
||||
return MM_MISS;
|
||||
} else if (is_rider(pd)) {
|
||||
mondied(magr);
|
||||
if (magr->mhp <= 0)
|
||||
if (DEADMONSTER(magr))
|
||||
result = MM_AGR_DIED;
|
||||
/* Rider takes extra damage regardless of whether attacker dies */
|
||||
*dmg_p += xtra_dmg;
|
||||
|
||||
Reference in New Issue
Block a user