diff --git a/js/medicine/surgery/structural/amputation.js b/js/medicine/surgery/structural/amputation.js index c63759897847efdc40f3312f0898ebb30cef3b1a..efc3f2b4a56183fe70725f0b4cd522fb46b20f6a 100644 --- a/js/medicine/surgery/structural/amputation.js +++ b/js/medicine/surgery/structural/amputation.js @@ -217,8 +217,13 @@ App.Medicine.Surgery.Reactions.Amputate = class extends App.Medicine.Surgery.Sim const {He, him} = getPronouns(slave); if (slave.behavioralFlaw === "arrogant") { - reaction.longReaction.last() - .push(`<span class="flaw break">${He} can hardly be arrogant relying on others to feed, bathe and carry ${him}.</span>`); + const r = `<span class="flaw break">${He} can hardly be arrogant relying on others to feed, bathe and carry ${him}.</span>`; + if (reaction.longReaction.length > 0) { + reaction.longReaction.last() + .push(r); + } else { + reaction.longReaction.push([r]); + } slave.behavioralFlaw = "none"; } diff --git a/js/medicine/surgery/voice/mute.js b/js/medicine/surgery/voice/mute.js index 6d1f5195f891d7815f95f21d25a2fed34ba53080..ba9062fcb60448e6ece070de6e36f46001eee4dc 100644 --- a/js/medicine/surgery/voice/mute.js +++ b/js/medicine/surgery/voice/mute.js @@ -40,8 +40,13 @@ App.Medicine.Surgery.Reactions.Mute = class extends App.Medicine.Surgery.SimpleR const {He} = getPronouns(slave); if (slave.behavioralFlaw === "bitchy") { - reaction.longReaction.last() - .push(`<span class="green">${He} can hardly make sharp remarks without a voice.</span>`); + const r = `<span class="green">${He} can hardly make sharp remarks without a voice.</span>`; + if (reaction.longReaction.length > 0) { + reaction.longReaction.last() + .push(r); + } else { + reaction.longReaction.push([r]); + } slave.behavioralFlaw = "none"; }