Skip to content

Instantly share code, notes, and snippets.

@zombie
Created April 19, 2016 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zombie/b35e727675d173c53bce18489bf58397 to your computer and use it in GitHub Desktop.
Save zombie/b35e727675d173c53bce18489bf58397 to your computer and use it in GitHub Desktop.
MORTALLY_WOUNDED = CURRENT_HEALTH <= 0
RANDOM_ENEMY_CHARACTER = RANDOM(ENEMY_CHARACTERS - MORTALLY_WOUNDED)
def test_arcane_missiles():
game = prepare_game()
wisp = game.player2.summon(WISP)
missiles = game.player1.give("EX1_277")
missiles.play()
if wisp.dead:
assert game.player2.hero.health == 28
else:
assert game.player2.hero.health == 27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment