Skip to content

Commit

Permalink
Night action awaiting should be done by ego_self (Xinverse#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
abitofevrything authored Apr 26, 2021
1 parent b7dfdda commit 580dc79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions botc/Game.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,14 +911,14 @@ async def compute_night_ability_interactions(self):
def has_received_all_expected_dawn_actions(self):
"""Check if all players with expected dawn actions have submitted them"""
for player in self.sitting_order:
if not player.role.true_self.has_finished_dawn_action(player):
if not player.role.ego_self.has_finished_dawn_action(player):
return False
return True

def has_received_all_expected_night_actions(self):
"""Check if all players with expected night actions have submitted them"""
for player in self.sitting_order:
if not player.role.true_self.has_finished_night_action(player):
if not player.role.ego_self.has_finished_night_action(player):
return False
return True

Expand Down

0 comments on commit 580dc79

Please sign in to comment.