fix pillaging?
@@ -590,9 +590,13 @@ class Econ(commands.Cog):
attackers_bees = await self.db.get_item(ctx.author.id, "Jar Of Bees")
if attackers_bees is None:
attackers_bees = 0
+ else:
+ attackers_bees = attackers_bees[0]
victims_bees = await self.db.get_item(victim.id, "Jar Of Bees")
if victims_bees is None:
victims_bees = 0
+ else:
+ victims_bees = victims_bees[0]
if attackers_bees > victims_bees:
heist_success = choice([False, True, True, True, False, True, False, True]) # 5/8
elif victims_bees > attackers_bees:
