Disable critical hits during tests

This commit is contained in:
Yohann D'ANELLO
2021-01-06 17:39:13 +01:00
parent 4ad7d6c37c
commit ae505166b7
2 changed files with 3 additions and 2 deletions

View File

@ -77,6 +77,7 @@ class TestEntities(unittest.TestCase):
{self.player.name.capitalize()} takes {entity.strength} damage.")
# Fight the rabbit
self.player.critical = 0
old_health = entity.health
self.player.move_down()
self.assertEqual(entity.health, old_health - self.player.strength)