summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-08-04 16:12:17 -0300
committerJesusaves <cpntb1@ymail.com>2021-08-04 16:12:17 -0300
commit06d5ff5fb30fc0dd8c6bd5b9e0b2c75dfe7c1b6f (patch)
treea1acff2961cb9b12dab59b91d2f91bbdc33ba36a
parentcbc4395890fdd7ca1794c7f75929348b4d19d421 (diff)
downloadserver-06d5ff5fb30fc0dd8c6bd5b9e0b2c75dfe7c1b6f.tar.gz
server-06d5ff5fb30fc0dd8c6bd5b9e0b2c75dfe7c1b6f.tar.bz2
server-06d5ff5fb30fc0dd8c6bd5b9e0b2c75dfe7c1b6f.tar.xz
server-06d5ff5fb30fc0dd8c6bd5b9e0b2c75dfe7c1b6f.zip
I also did a typo which prevented players from gaining spheres
-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([