From 5d195156c358dc1b8ef01d79edf592df62cfc61e Mon Sep 17 00:00:00 2001 From: ErfanFaravani Date: Wed, 12 Feb 2020 10:05:15 +0330 Subject: [PATCH] remaining turns fixed --- world.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/world.py b/world.py index eb17216..0e10718 100644 --- a/world.py +++ b/world.py @@ -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):