Use faction2 variable instead of retrieving setting again
This commit is contained in:
parent
e4a6b2db6b
commit
df43fa7333
@ -150,7 +150,7 @@ function build_card(component) {
|
|||||||
|
|
||||||
var faction2 = component.settings.get('CardClass2');
|
var faction2 = component.settings.get('CardClass2');
|
||||||
if (faction2 && faction2 != 'None') {
|
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') {
|
if (card_types[component.getFrontTemplateKey()] == 'enemy') {
|
||||||
|
Loading…
Reference in New Issue
Block a user