From a50237b6f63093f230e8daa6d1e5d9f1dce9c67d Mon Sep 17 00:00:00 2001 From: VoidyCD Date: Mon, 1 Feb 2021 15:04:06 +0300 Subject: [PATCH] Fight Command --- lib/cogs/fightCog.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/cogs/fightCog.py b/lib/cogs/fightCog.py index 1f614d6..a50150a 100644 --- a/lib/cogs/fightCog.py +++ b/lib/cogs/fightCog.py @@ -1,4 +1,7 @@ -from cogs.imports import * +import discord +import asyncio +import math +import random class Player: @@ -66,7 +69,7 @@ async def turn(self, ctx, p1, p2): async def fight(self, ctx, opponent: discord.Member): if ctx.channel.id in self.occupied: await ctx.send("This battlefield is occupied") - return + else: self.occupied.append(ctx.channel.id) if opponent == ctx.message.author: