Skip to content

Instantly share code, notes, and snippets.

@beheh
Last active August 29, 2015 14:26
Show Gist options
  • Save beheh/00209e2acf2e092cb812 to your computer and use it in GitHub Desktop.
Save beheh/00209e2acf2e092cb812 to your computer and use it in GitHub Desktop.
def test_siege_engine():
game = prepare_game(WARRIOR, WARRIOR)
game.player1.hero.power.use()
assert game.player1.hero.armor == 2
siege = game.player1.give("GVG_086")
siege.play()
assert siege.atk == 5
assert siege.health == 5
game.end_turn()
game.player2.hero.power.use()
assert game.player2.hero.armor == 4
assert siege.atk == 5
assert siege.health == 5
game.end_turn()
game.player1.hero.power.use()
assert game.player1.hero.armor == 4
assert siege.atk == 6
assert siege.health == 5
# Shield Block
game.player1.give("EX1_606").play()
assert game.player1.hero.armor > 4
assert siege.atk == 7
assert siege.health == 5
def test_siege_engine_armorsmith_pyromancer_whirlwind():
game = prepare_game()
siege = game.player1.give("GVG_086")
siege.play()
game.player1.summon("EX1_402")
game.player1.summon("EX1_402")
game.player1.summon("NEW1_020")
assert siege.atk == 5
# Whirlwind
game.player1.give("EX1_400").play()
assert game.player2.hero.armor == 1
assert siege.atk == 5 + 12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment