Skip to content

Commit ed6fcfd

Browse files
committed
warresult2 int(res[1]) for split get string return
1 parent 76badc5 commit ed6fcfd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

root.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4022,12 +4022,13 @@ def warresult2(uid):
40224022
if len(res) < 2:
40234023
i -= 1
40244024
continue
4025-
if res[2] == 1:
4025+
if int(res[2]) == 1:
40264026
break
4027-
if res[1] == 0:#defence fail
4027+
if int(res[1]) == 0:#defence fail
40284028
fails += 1
40294029
i -= 1
40304030
if fails == 3:
4031+
print "weak mode"
40314032
weakMode = True
40324033
#if in weak Mode just lost defence 5%
40334034
if weakMode:

0 commit comments

Comments
 (0)