Skip to content

Commit

Permalink
docs: fix a few simple typos (#491)
Browse files Browse the repository at this point in the history
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 <tim.gates@iress.com>
  • Loading branch information
shinoi2 and timgates42 committed Jul 1, 2021
1 parent 1d7e5da commit 58c5c60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fireplace/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion fireplace/dsl/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_wog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 58c5c60

Please sign in to comment.