Fixing a bad tengwar detection causing Towers packs (with the capital T) to show up as an error image.

This commit is contained in:
Christian 'ketura' McCarty
2025-04-09 19:22:30 -05:00
parent dc41cdb0cf
commit a21ff70b21

View File

@@ -112,7 +112,7 @@ class Card {
this.bareBlueprint = this.bareBlueprint + "ai";
}
this.tengwar = this.blueprintId.includes("T");
this.tengwar = this.blueprintId.match(/(_\d+)T/);
this.hasWiki = Card.getFixedImage(this.bareBlueprint) == null
&& packBlueprints[this.bareBlueprint] == null;