Skip to content

Commit

Permalink
adaptation for python-hearthstone new version
Browse files Browse the repository at this point in the history
  • Loading branch information
shinoi2 committed Apr 15, 2024
1 parent 28488d1 commit dea545e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fireplace/cards/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,14 @@ def merge(id, card, cardscript=None):
card.tags[tag] = value

if hasattr(cardscript, "requirements"):
card.powers.append({"requirements": cardscript.requirements})
card.requirements = cardscript.requirements
else:
card.powers.append({"requirements": {}})
card.requirements = {}

if hasattr(cardscript, "entourage"):
card.entourage = cardscript.entourage
else:
card.entourage = []

if hasattr(cardscript, "progress_total"):
card.scripts.progress_total = cardscript.progress_total
Expand Down

0 comments on commit dea545e

Please sign in to comment.