mantimon-tcg/backend/data/raw/a1/132-gardevoir.json
Cal Corum adb55dec12 Fix scraper to preserve energy types in effect text
The source website uses <span class='energy-text energy-text--type-fire'>
to render inline energy icons. BeautifulSoup's get_text() was stripping
these spans, losing the energy type information and causing merged text
like 'Discard aEnergy' instead of 'Discard a Fire Energy'.

Changes:
- Add ENERGY_TEXT_TYPES mapping for inline energy references
- Add replace_energy_text_spans() to convert spans to text before extraction
- Add extract_effect_text() helper with proper text joining (separator=' ')
- Update parse_attack(), parse_ability(), _parse_trainer_details() to use it
- Fix JSON encoding in convert_cards.py to use UTF-8 (ensure_ascii=False)

Before: 'Discard an Energy from this Pokémon'
After:  'Discard a Fire Energy from this Pokémon'

Re-scraped all 372 cards and regenerated 382 definitions.
2026-01-27 15:10:02 -06:00

46 lines
1.1 KiB
JSON

{
"id": "a1-132-gardevoir",
"name": "Gardevoir",
"set_code": "a1",
"set_name": "Genetic Apex",
"card_number": 132,
"rarity": "Rare",
"card_type": "pokemon",
"image_url": "https://assets.pokemon-zone.com/game-assets/CardPreviews/cPK_10_001320_00_SIRNIGHT_R.webp",
"image_file": null,
"source_url": "https://www.pokemon-zone.com/cards/a1/132/gardevoir/",
"hp": 110,
"pokemon_type": "psychic",
"stage": "stage_2",
"evolves_from": "Kirlia",
"is_ex": false,
"abilities": [
{
"name": "Psy Shadow",
"effect_text": "Once during your turn, you may take a Psychic Energy from your Energy Zone and attach it to the Psychic Pokémon in the Active Spot.",
"effect_id": null
}
],
"attacks": [
{
"name": "Psyshot",
"cost": [
"psychic",
"psychic",
"colorless"
],
"damage": 60,
"damage_modifier": null,
"effect_text": null,
"effect_id": null
}
],
"weakness": {
"type": "darkness",
"value": 20
},
"resistance": null,
"retreat_cost": 2,
"flavor_text": null,
"illustrator": "Yuu Nishida"
}