fix: attack text is none

main
beiyanpiki 1 year ago
parent 8a0f934664
commit f657d6ed92

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -223,7 +223,7 @@ def get_pokemon_attr(card) -> PokemonAttr:
attacks = []
for attack in card['details']['abilityItemList']:
atk_name = attack['abilityName']
atk_text = attack['abilityText']
atk_text = "" if attack['abilityText'] == 'none' else attack['abilityText']
atk_cost = attack.get('abilityCost', '')
atk_cost = ['none'] if atk_cost == '' else [elem for elem in atk_cost.split(',') if elem != ""]
for i in range(len(atk_cost)):

Loading…
Cancel
Save