Use faction2 variable instead of retrieving setting again

This commit is contained in:
Adam Goldsmith 2021-09-08 14:46:37 -04:00
parent e4a6b2db6b
commit df43fa7333

View File

@ -150,7 +150,7 @@ function build_card(component) {
var faction2 = component.settings.get('CardClass2');
if (faction2 && faction2 != 'None') {
card_data.faction2_code = String(component.settings.get('CardClass2')).toLowerCase();
card_data.faction2_code = String(faction2).toLowerCase();
}
if (card_types[component.getFrontTemplateKey()] == 'enemy') {