summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--battle/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/battle/main.py b/battle/main.py
index bd9c90a..3cc92f8 100644
--- a/battle/main.py
+++ b/battle/main.py
@@ -348,7 +348,7 @@ def battle_endturn(token, spheres):
stdout("Exceeding spheres removed", 2)
# Add 1~3 random spheres; But never go over 5 spheres
- i=min(random.randint(1,3), len(Battle[token]["spheres"]) - 5)
+ i=min(random.randint(1,3), 5 - len(Battle[token]["spheres"]))
while i > 0:
i-=1
sp=random.choice([