From ec5baa3897b285d26d2a2f21c260204d314a727e Mon Sep 17 00:00:00 2001 From: Max Liebkies Date: Wed, 13 Jan 2021 11:50:52 +0100 Subject: [PATCH] Revert changes to ENCOUNTER_END Initial changeset would change loot spec back to default when the ENCOUNTER_ENDs. This lead to confusing behavior of the addon. Reverting this change means that the loot spec will not change back to the default setting. --- LootSpecManager/LootSpecManager.lua | 7 ------- 1 file changed, 7 deletions(-) diff --git a/LootSpecManager/LootSpecManager.lua b/LootSpecManager/LootSpecManager.lua index f547e56..09481c5 100644 --- a/LootSpecManager/LootSpecManager.lua +++ b/LootSpecManager/LootSpecManager.lua @@ -142,13 +142,6 @@ function events:ENCOUNTER_START(id, _, difficulty) end end -function events:ENCOUNTER_END() - if C_ChallengeMode.GetActiveKeystoneInfo() ~= 0 then - return - end - set_spec(LTSM_API:get_default_spec()) -end - function events:CHALLENGE_MODE_START(mapId) if set_spec(LTSM_API:get_mythicplus_spec(mapId)) then print("[LTSM] M+ started, loot spec changed.")