Skip to content

Deck objects don't properly filter elemental hero cards. #6

@HarrisonTotty

Description

@HarrisonTotty

Describe the bug
The cards an elemental hero can play are designated in the body of the card, as opposed to its types. Therefore, any calls to filter_related() will be inaccurate.

To Reproduce
Create a Briar deck.

all_cards = [] # contains all cards ...
briar = Card.from_full_name('Briar')
deck = Deck(name='test', hero=briar)
deck.filter_related(all_cards)

Expected behavior
You should see Earth and Lightning cards in the list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions