mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
Fix italic prototype and companion
This commit is contained in:
@@ -3283,7 +3283,7 @@ function changeCardIndex() {
|
||||
if (card.text.mana) {card.text.mana.text = cardToImport.mana_cost || '';}
|
||||
if (card.text.type) {card.text.type.text = langFontCode + cardToImport.type_line || '';}
|
||||
if (card.text.rules) {
|
||||
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'];
|
||||
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'];
|
||||
var rulesText = (cardToImport.oracle_text || '').replace(/(?:\((?:.*?)\)|[^"\n]+(?= — ))/g, function(a){
|
||||
if (italicExemptions.includes(a)) {return a;}
|
||||
return '{i}' + a + '{/i}';
|
||||
|
Reference in New Issue
Block a user