Skip to content

Commit

Permalink
Implement Hallazeal the Ascended, with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jleclanche committed May 5, 2016
1 parent 44933c3 commit 018ba22
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fireplace/cards/wog/shaman.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
##
# Minions


# Hallazeal the Ascended
class OG_209:
events = Damage(source=SPELL + FRIENDLY).on(Heal(FRIENDLY_HERO, Damage.AMOUNT))
18 changes: 18 additions & 0 deletions tests/test_wog.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,24 @@ def test_forlorn_stalker():
assert wisp.atk == wisp.health == 1


def test_hallazeal_the_ascended():
game = prepare_game()
hallazeal = game.player1.give("OG_209")
hallazeal.play()
game.player1.hero.set_current_health(1)
game.end_turn(); game.end_turn()

moonfire = game.player1.give(MOONFIRE)
moonfire.play(target=game.player2.hero)
assert game.player1.hero.health == 1 + 1
assert game.player2.hero.health == 30 - 1
game.player1.give(KOBOLD_GEOMANCER).play()
fireball = game.player1.give("CS2_029")
fireball.play(target=hallazeal)
assert game.player1.hero.health == 1 + 1 + 7
assert hallazeal.dead


def test_silithid_swarmer():
game = prepare_game(ROGUE, ROGUE)
silithid = game.player1.give("OG_034")
Expand Down

0 comments on commit 018ba22

Please sign in to comment.