small cleanup

This commit is contained in:
2024-05-03 16:28:46 +02:00
parent 90b9e989a7
commit 098dc4977f
+1 -3
View File
@@ -3,7 +3,6 @@ Checks the actions of the user and prevent the user to do something illegal
""" """
from typing import TYPE_CHECKING, List, Dict, Optional, Callable, Coroutine, Any from typing import TYPE_CHECKING, List, Dict, Optional, Callable, Coroutine, Any
from uuid import UUID
from model import ( from model import (
Serializable, Serializable,
CardType, CardType,
@@ -11,7 +10,6 @@ from model import (
Effect, Effect,
CardEffects, CardEffects,
EffectType, EffectType,
EffectTimes,
Team, Team,
) )
@@ -86,7 +84,7 @@ class Turn(Serializable):
effect.effect_type is None effect.effect_type is None
or effect.effect_type == EffectType.CHAMPION_ACTION or effect.effect_type == EffectType.CHAMPION_ACTION
): ):
if len(effect.mutex) == 0 and effect.times == None: if len(effect.mutex) == 0 and effect.times is None:
await self.use_effect_with_check(effect_id=str(effect.uuid)) await self.use_effect_with_check(effect_id=str(effect.uuid))
else: else:
for _ in range(effect.amount): for _ in range(effect.amount):