mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
Update creator-23.js
This commit is contained in:
@@ -727,8 +727,9 @@ function writeText(textObject, targetContext) {
|
|||||||
//Preps the text string
|
//Preps the text string
|
||||||
var splitString = '6GJt7eL8';
|
var splitString = '6GJt7eL8';
|
||||||
var rawText = textObject.text
|
var rawText = textObject.text
|
||||||
if (params.get('copyright') != null && (textObject.name == 'wizards' || textObject.name == 'copyright') && card.margins) {
|
if ((textObject.name == 'wizards' || textObject.name == 'copyright') && params.get('copyright') != null && (params.get('copyright') != '' || card.margins)) {
|
||||||
rawText = params.get('copyright'); //so people using CC for custom card games without WotC's IP can customize their copyright info
|
rawText = params.get('copyright'); //so people using CC for custom card games without WotC's IP can customize their copyright info
|
||||||
|
if (rawText == 'none') { rawText = ''; }
|
||||||
}
|
}
|
||||||
if (rawText.toLowerCase().includes('{cardname}')) {
|
if (rawText.toLowerCase().includes('{cardname}')) {
|
||||||
rawText = rawText.replace(/{cardname}/ig, getCardName());
|
rawText = rawText.replace(/{cardname}/ig, getCardName());
|
||||||
|
Reference in New Issue
Block a user