From d61257d1b5e6aabffad7dfb1598c3b54fdeede82 Mon Sep 17 00:00:00 2001 From: ErfanFaravani Date: Wed, 12 Feb 2020 10:03:04 +0330 Subject: [PATCH] remaining turns fixed --- world.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/world.py b/world.py index 123204e..eb17216 100644 --- a/world.py +++ b/world.py @@ -493,11 +493,11 @@ 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 + return self.game_constants.turns_to_upgrade - self.current_turn # 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): - return self.game_constants.turns_to_spell + return (self.game_constants.turns_to_spell - self.current_turn) % self.game_constants.turns_to_spell # returns a list of spells casted on a cell def get_range_upgrade_number(self, player_id):