From dea545e467a775d11ec1847761e9a9586fb55509 Mon Sep 17 00:00:00 2001 From: shinoi2 Date: Mon, 15 Apr 2024 11:15:54 +0800 Subject: [PATCH] adaptation for python-hearthstone new version --- fireplace/cards/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fireplace/cards/__init__.py b/fireplace/cards/__init__.py index c4793650b..076c9e1c1 100644 --- a/fireplace/cards/__init__.py +++ b/fireplace/cards/__init__.py @@ -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