Skip to content
Jerome Leclanche edited this page Aug 13, 2015 · 7 revisions

Fireplace uses the CardDefs.xml file to generate the static data for all the cards in Hearthstone.

A parser is available here.

Filtering the card data

A filter interface is available as fireplace.cards.filter. It can filter based on any attribute available in the CardXML class.

For example, to get all collectible minions that cost 3 mana:

import fireplace.cards
from fireplace.enums import CardType

minions = fireplace.cards.filter(collectible=True, cost=3, card_type=CardType.MINION)

Note that this will return a list of Card IDs, not Card objects themselves.