diff --git a/strange_eons_to_arkhamdb.js b/strange_eons_to_arkhamdb.js index b6abb89..3a011f4 100644 --- a/strange_eons_to_arkhamdb.js +++ b/strange_eons_to_arkhamdb.js @@ -166,10 +166,18 @@ function build_card(component) { var faction = component.settings.get('CardClass'); if (faction) { - card_data.faction_code = String(faction).toLowerCase(); - var faction2 = component.settings.get('CardClass2'); - if (faction2 && faction2 != 'None') { - card_data.faction2_code = String(faction2).toLowerCase(); + if (faction == 'Weakness') { + card_data.subtype_code = "weakness"; + } + else if (faction == 'Basic Weakness') { + card_data.subtype_code = "basicweakness"; + } + else { + card_data.faction_code = String(faction).toLowerCase(); + var faction2 = component.settings.get('CardClass2'); + if (faction2 && faction2 != 'None') { + card_data.faction2_code = String(faction2).toLowerCase(); + } } }