Skip to content

Commit

Permalink
Update battle.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JhMaic authored Jun 12, 2020
1 parent c1362d2 commit a5e59f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/client/ybplugins/clan_battle/battle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1640,9 +1640,7 @@ def execute(self, match_num, ctx):
reply += ':' + m['message']
return reply
elif match_num == 26:
if len(cmd) != 3:
return
match = re.match(r'^让刀([1-5])$', cmd)
match = re.match(r'^让刀 *([1-5])$', cmd)
if not match:
return '请输入格式:“让刀[1-5]”'
boss_num = int(match.group(1))
Expand Down

0 comments on commit a5e59f5

Please sign in to comment.