diff --git a/clash_royale/envs/game_engine/player.py b/clash_royale/envs/game_engine/player.py index 4e93872..9025c43 100644 --- a/clash_royale/envs/game_engine/player.py +++ b/clash_royale/envs/game_engine/player.py @@ -88,6 +88,7 @@ def play_card(self, card_index: int) -> None: assert card_index >= 0 and card_index < 4 elixir_cost: float = self.hand[card_index].elixir_cost - assert(elixir_cost <= self.elixir) + + assert elixir_cost <= self.elixir self.pop(card_index) self.elixir -= elixir_cost