From 720a3ae2810ff2c3b273e2d60a4a7c473a4702a8 Mon Sep 17 00:00:00 2001
From: pregmodfan <pregmodfan@cock.li>
Date: Wed, 22 May 2019 20:57:11 +0300
Subject: [PATCH] superfetation should respect infertility and contraceptives -
 wrong property fixed

---
 src/js/pregJS.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/js/pregJS.js b/src/js/pregJS.js
index dbfe3ede042..4a34fced852 100644
--- a/src/js/pregJS.js
+++ b/src/js/pregJS.js
@@ -121,7 +121,7 @@ window.setPregType = function(actor) {
 				}
 			}
 			ovum = Math.clamp(ovum, 0, 8);
-		} else if (actor.pregType === 0 || (actor.geneticQuirks.superfetation > 1 && actor.pregType >= 0)) {
+		} else if (actor.pregType === 0 || (actor.geneticQuirks.superfetation > 1 && actor.preg >= 0)) {
 			if (actor.eggType === "horse" || actor.eggType === "cow") {
 				if (actor.geneticQuirks.fertility === 2 && actor.geneticQuirks.hyperFertility === 2) { // Do not mix with sperm
 					ovum += jsEither([0, 0, 0, 0, 0, 0, 1]);
-- 
GitLab