Skip to content

Commit

Permalink
remaining turns fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
erfanfi79 committed Feb 12, 2020
1 parent d61257d commit 5d19515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion world.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def _is_unit_targeted(self, unit, spell_target):

# every once in a while you can upgrade, this returns the remaining time for upgrade
def get_remaining_turns_to_upgrade(self):
return self.game_constants.turns_to_upgrade - self.current_turn
return (self.game_constants.turns_to_upgrade - self.current_turn) % self.game_constants.turns_to_upgrade

# every once in a while a spell is given this remains the remaining time to get new spell
def get_remaining_turns_to_get_spell(self):
Expand Down

0 comments on commit 5d19515

Please sign in to comment.