Commit 2038b062 authored by Max's avatar Max 💬

activeadventure: don't remove cooldown on timeout

parent 59750fed
......@@ -408,13 +408,11 @@ class Adventure(commands.Cog):
try:
direction = await wait_for_move()
except asyncio.TimeoutError:
await self.bot.reset_cooldown(ctx)
return await msg.edit(content=_("Timed out."))
x, y = move(x, y, direction) # Python namespacing sucks, to be honest
try:
hp = await handle_specials(hp) # Should've used a class for this
except asyncio.TimeoutError:
await self.bot.reset_cooldown(ctx)
return await msg.edit(content=_("Timed out."))
if hp <= 0:
return await ctx.send(_("You died."))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment