From e7084e9c733f66b2537c65542e8086ff02a6151a Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Thu, 22 Oct 2020 10:13:23 -0400
Subject: [PATCH] From birth to death

---
 src/js/birth/birth.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/js/birth/birth.js b/src/js/birth/birth.js
index 59ca7fdfa4b..8e125626134 100644
--- a/src/js/birth/birth.js
+++ b/src/js/birth/birth.js
@@ -71,13 +71,16 @@ globalThis.birth = function(slave, {birthStorm = false, cSection = false} = {})
 			slave.counter.laborCount++;
 		}
 		el.append(birthCritical());
-		if (cSection && slave.broodmother === 0 && V.bellyImplants === 1) {
+		if (!slaveDead && cSection && slave.broodmother === 0 && V.bellyImplants === 1) {
 			el.append(implantImplant());
 		}
 	}
 
 	if (slaveDead) {
 		removeSlave(slave);
+		V.nextButton = "Back to Main";
+		V.nextLink = "Main";
+		App.Utils.updateUserButton();
 	} else {
 		if (cSection) {
 			App.Medicine.Modification.addScar(slave, "belly", "c-section");
-- 
GitLab