From 1abaeae06ae50243a0c8510cf293f6edeb202de1 Mon Sep 17 00:00:00 2001 From: Svornost <11434-svornost@users.noreply.gitgud.io> Date: Wed, 13 May 2020 21:48:15 -0700 Subject: [PATCH] Aunt/uncle & niece/nephew "along with" lists must exclude the subject slave. --- src/descriptions/familySummaries.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/descriptions/familySummaries.js b/src/descriptions/familySummaries.js index 6b82150d8d8..21128b78103 100644 --- a/src/descriptions/familySummaries.js +++ b/src/descriptions/familySummaries.js @@ -226,7 +226,7 @@ App.Desc.family = (function() { /* PC aunt and uncle - determines how many aunts and uncles you have */ if (isAunt(V.PC, slave)) { - const {m: uncles, f: aunts} = splitBySex(V.slaves.filter((s) => isAunt(V.PC, s))); + const {m: uncles, f: aunts} = splitBySex(V.slaves.filter((s) => s.ID !== slave.ID && isAunt(V.PC, s))); r.push(`${He} is`); if (slave.genes === "XX") { @@ -270,7 +270,7 @@ App.Desc.family = (function() { /* PC niece and nephew - determines how many nieces and nephews you have*/ if (isAunt(slave, V.PC)) { - const {m: nephews, f: nieces} = splitBySex(V.slaves.filter((s) => isAunt(s, V.PC))); + const {m: nephews, f: nieces} = splitBySex(V.slaves.filter((s) => s.ID !== slave.ID && isAunt(s, V.PC))); r.push(`${He} is`); if (slave.genes === "XX") { -- GitLab