From 4e57b1b4daf30df52a5b00d61b9839e63389dcf7 Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Thu, 8 Mar 2018 19:18:04 -0500
Subject: [PATCH] BGs can now properly count.

---
 devNotes/VersionChangeLog-Premod+LoliMod.txt | 3 +++
 src/uncategorized/saGuardsYou.tw             | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/devNotes/VersionChangeLog-Premod+LoliMod.txt b/devNotes/VersionChangeLog-Premod+LoliMod.txt
index ceba4417954..dfd852556ef 100644
--- a/devNotes/VersionChangeLog-Premod+LoliMod.txt
+++ b/devNotes/VersionChangeLog-Premod+LoliMod.txt
@@ -4,6 +4,9 @@
 
 3/08/2018
 
+	387
+	-tweaked saGuardsYou to actually count facility heads the BG has trained when it comes to counting successors
+
 	386
 	-tweaked childgen to only random face and int for playerXmarked if the child is below the minimum value
 	-migrated mindbroken kicker cases from slaveAssignmentsReport to saTakeClasses and saStayConfined
diff --git a/src/uncategorized/saGuardsYou.tw b/src/uncategorized/saGuardsYou.tw
index 5daec7e79b9..b33d58603d6 100644
--- a/src/uncategorized/saGuardsYou.tw
+++ b/src/uncategorized/saGuardsYou.tw
@@ -180,7 +180,8 @@ Being continually trusted with your life @@.hotpink;increases her devotion to yo
 
 <<if $bodyguardTrains == 1 && $slaves[$i].devotion > 95 && $slaves[$i].trust > 50 && $slaves[$i].combatSkill > 0 && $slaves[$i].intelligence > 0>>
 	She's confident in her martial skills, but smart enough to know that she isn't immortal, and devoted enough to worry about who will protect you should she die.
-	<<set _successorCandidates = $slaves.filter( function(s) { return s.assignmentVisible == 1 && bodyguardSuccessorEligible(s); } )>>
+	<<set _successorCandidates = $slaves.filter( function(s) { return (s.assignmentVisible == 1 || s.assignement == "be your Concubine" || s.assignement == "be the Wardeness" || s.assignement == 
+"be your Head Girl") && bodyguardSuccessorEligible(s); } )>>
 	<<set _combatSkilled = _successorCandidates.filter( function(s) { return s.combatSkill > 0; })>>
 	<<if _combatSkilled.length < 2>>
 		<<unset $subSlave>>
-- 
GitLab