From 360ca24df1c15a97bec3554c4f0191a0c704e3e9 Mon Sep 17 00:00:00 2001
From: Anu <anulithic@gmail.com>
Date: Mon, 13 Feb 2023 16:28:32 -0800
Subject: [PATCH] Fix Master Suite fertility drugs priority

---
 src/endWeek/reports/masterSuiteReport.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/endWeek/reports/masterSuiteReport.js b/src/endWeek/reports/masterSuiteReport.js
index ece7e157934..a7a0e0d8954 100644
--- a/src/endWeek/reports/masterSuiteReport.js
+++ b/src/endWeek/reports/masterSuiteReport.js
@@ -286,10 +286,10 @@ App.EndWeek.masterSuiteReport = function() {
 
 		if (V.masterSuiteUpgradePregnancy === 1) {
 			/* If they're not on fertility drugs and the toggle is active, stick them on (if they can take them). Otherwise take them off. */
-			if (V.masterSuitePregnancyFertilityDrugs === 1 && slave.drugs !== "fertility drugs" && canGetPregnant(slave)) {
-				slave.drugs = "fertility drugs";
-			} else if (V.masterSuiteHyperPregnancy === 1 && slave.drugs !== "super fertility drugs" && canGetPregnant(slave)) {
+			if (V.masterSuiteHyperPregnancy === 1 && slave.drugs !== "super fertility drugs" && canGetPregnant(slave)) {
 				slave.drugs = "super fertility drugs";
+			} else if (V.masterSuitePregnancyFertilityDrugs === 1 && slave.drugs !== "fertility drugs" && canGetPregnant(slave)) {
+				slave.drugs = "fertility drugs";
 			} else if (
 				(
 					(V.masterSuitePregnancyFertilityDrugs === 0 && slave.drugs === "fertility drugs") ||
-- 
GitLab