From 9df851d5da9f38f0955c55bf9844f30918c417d1 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 25 May 2024 18:32:34 +0300 Subject: [PATCH] Fix split monster with 0 max hp A gremlin first hit a fire trap, reducing its max hp to 1, and then it plunged into water, making the split gremlin have 0 max hp. --- src/potion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/potion.c b/src/potion.c index 9f5d0c722..9a4731e2c 100644 --- a/src/potion.c +++ b/src/potion.c @@ -2834,7 +2834,7 @@ split_mon( disp.botl = TRUE; You("multiply%s!", reason); } - } else { + } else if (mon->mhpmax > 1) { mtmp2 = clone_mon(mon, 0, 0); if (mtmp2) { mtmp2->mhpmax = mon->mhpmax / 2;