From 18e6fd7f0fb1569ded3fd1ea5f2d3d9d4edb75c3 Mon Sep 17 00:00:00 2001 From: Josh birnholz Date: Thu, 28 Mar 2024 13:51:56 -0400 Subject: [PATCH] Don't italicize Spree modes --- js/creator-23.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/creator-23.js b/js/creator-23.js index 8ce1ebc4..172c4dde 100644 --- a/js/creator-23.js +++ b/js/creator-23.js @@ -4687,7 +4687,7 @@ function changeCardIndex() { var italicExemptions = ['Boast', 'Cycling', 'Visit', 'Prize', 'I', 'II', 'III', 'IV', 'I, II', 'II, III', 'III, IV', 'I, II, III', 'II, III, IV', 'I, II, III, IV', '• Khans', '• Dragons', '• Mirran', '• Phyrexian', 'Prototype', 'Companion', 'To solve', 'Solved']; var rulesText = (cardToImport.oracle_text || '').replace(/(?:\((?:.*?)\)|[^"\n]+(?= — ))/g, function(a){ - if (italicExemptions.includes(a)) {return a;} + if (italicExemptions.includes(a) || (cardToImport.keywords.indexOf('Spree') != -1 && a.startsWith('+'))) {return a;} return '{i}' + a + '{/i}'; }); rulesText = curlyQuotes(rulesText).replace(/{Q}/g, '{untap}').replace(/{\u221E}/g, "{inf}").replace(/• /g, '• {indent}');