This commit is contained in:
Amazed 2020-09-01 00:00:46 +02:00
parent d8489cf46a
commit c9c1f8276f

View File

@ -132,7 +132,7 @@ class WynncraftCog(commands.Cog):
last_status[guild_id][member_name][cl["name"]] = cl
# get max_combat_lvl_class
if cl["professions"]["combat"]["level"] > max_combat_lvl_class["professions"]["combat"]["level"]:
if not max_combat_lvl_class or cl["professions"]["combat"]["level"] > max_combat_lvl_class["professions"]["combat"]["level"]:
max_combat_lvl_class = cl
await self._log("Setting max_combat_lvl_class role")