From 58c5c60dc4502956d1a7a12c616c9b6201598edb Mon Sep 17 00:00:00 2001 From: shinoi2 Date: Thu, 1 Jul 2021 17:44:32 +0800 Subject: [PATCH] docs: fix a few simple typos (#491) There are small typos in: - fireplace/actions.py - fireplace/dsl/evaluator.py - tests/test_wog.py Fixes: - Should read `evaluate` rather than `evalutae`. - Should read `destroy` rather than `destory`. - Should read `bizarre` rather than `bizzare`. Closes #489 Co-authored-by: Tim Gates --- fireplace/actions.py | 2 +- fireplace/dsl/evaluator.py | 2 +- tests/test_wog.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fireplace/actions.py b/fireplace/actions.py index 6ee66b936..f53fa02d8 100644 --- a/fireplace/actions.py +++ b/fireplace/actions.py @@ -740,7 +740,7 @@ def do(self, source, target, amount): if hasattr(source, "lifesteal") and source.lifesteal and source.type != CardType.WEAPON: source.heal(source.controller.hero, amount) self.broadcast(source, EventListener.ON, target, amount, source) - # poisonous can not destory hero + # poisonous can not destroy hero if hasattr(source, "poisonous") and source.poisonous and ( target.type != CardType.HERO and source.type != CardType.WEAPON): target.destroy() diff --git a/fireplace/dsl/evaluator.py b/fireplace/dsl/evaluator.py index 21442df70..2cd8c3427 100644 --- a/fireplace/dsl/evaluator.py +++ b/fireplace/dsl/evaluator.py @@ -85,7 +85,7 @@ def check(self, source): class ChooseBoth(Evaluator): """ Evaluates to True if the selector `choose_both` is true - Selector must evalutae to only one player. + Selector must evaluate to only one player. """ def __init__(self, selector): super().__init__() diff --git a/tests/test_wog.py b/tests/test_wog.py index d81413481..dfc9ac473 100644 --- a/tests/test_wog.py +++ b/tests/test_wog.py @@ -414,7 +414,7 @@ def test_scaled_nightmare(): def test_scaled_nightmare_buff_ordering(): - # To show that fireplace doesn't have blizzard's truly bizzare bugs. + # To show that fireplace doesn't have blizzard's truly bizarre bugs. # cf: HearthSim/hs-bugs#462 # "Scaled Nightmare stops doubling Attack if its Attack value is Direct Set" game = prepare_game()