Fix some more issues with the turnbased combat
This commit is contained in:
parent
d13ac065c7
commit
1c5746d59c
5 changed files with 22 additions and 9 deletions
|
|
@ -502,7 +502,7 @@ class EvAdventureTurnbasedCombatHandlerTest(_CombatTestBase):
|
|||
"""
|
||||
|
||||
self.assertEqual(self.combathandler.turn, 0)
|
||||
action_dict = {"key": "flee"}
|
||||
action_dict = {"key": "flee", "repeat": True}
|
||||
|
||||
# first flee records the fleeing state
|
||||
self.combathandler.flee_timeout = 2 # to make sure
|
||||
|
|
@ -510,6 +510,9 @@ class EvAdventureTurnbasedCombatHandlerTest(_CombatTestBase):
|
|||
self.assertEqual(self.combathandler.turn, 1)
|
||||
self.assertEqual(self.combathandler.fleeing_combatants[self.combatant], 1)
|
||||
|
||||
# action_dict should still be in place due to repeat
|
||||
self.assertEqual(self.combathandler.combatants[self.combatant], action_dict)
|
||||
|
||||
self.combatant.msg.assert_called_with(
|
||||
text=(
|
||||
"You retreat, being exposed to attack while doing so (will escape in 1 turn).",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue