From 15a13930f79f70afcf8304c9a94731eb4e0ac4d8 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Mon, 26 Oct 2020 23:32:34 -0400
Subject: [PATCH] birth farm safety and fix

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

diff --git a/src/js/birth/birth.js b/src/js/birth/birth.js
index 4b126c9765b..b3d157d4aef 100644
--- a/src/js/birth/birth.js
+++ b/src/js/birth/birth.js
@@ -5089,7 +5089,7 @@ globalThis.birth = function(slave, {birthStorm = false, cSection = false} = {})
 						animals.push(V.canines[roll]);
 					}
 					if (slave.fetish === "mindbroken") {
-						if (V.farmyardShows && V.seeBestiality) {
+						if (V.farmyardShows && V.seeBestiality && animals.length > 0) {
 							roll = random(0, animals.length);
 							r.push(`${He} shows no interest in ${his} coming birth as ${he} continues being rutted by a ${animals[roll].species}, so`);
 							if (S.Farmer) {
@@ -5105,7 +5105,7 @@ globalThis.birth = function(slave, {birthStorm = false, cSection = false} = {})
 							}
 							r.push(`to come out, or when ${he} is subsequently hosed off before being led back to ${V.farmyardName}.`);
 						} else {
-							r.push(`${He} shows no interest in ${his} coming birth as ${he} continues either("loading hay bales", "milking a cow", "pulling weeds"), until ${his} contractions become so strong that ${he} collapses to ${his} knees.`);
+							r.push(`${He} shows no interest in ${his} coming birth as ${he} continues ${either("loading hay bales", "milking a cow", "pulling weeds")}, until ${his} contractions become so strong that ${he} collapses to ${his} knees.`);
 							if (S.Farmer) {
 								r.push(S.Farmer.slaveName);
 							} else {
-- 
GitLab