From c9c1f8276f88554b721066386f600ba566902b9b Mon Sep 17 00:00:00 2001 From: Hipstercat Date: Tue, 1 Sep 2020 00:00:46 +0200 Subject: [PATCH] fix 2 --- cogs/wynncraft/wynncraftcog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/wynncraft/wynncraftcog.py b/cogs/wynncraft/wynncraftcog.py index 56e2052..322ecdd 100644 --- a/cogs/wynncraft/wynncraftcog.py +++ b/cogs/wynncraft/wynncraftcog.py @@ -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")