Quantcast

Have to set the difficulty first due to the Dungeon Journal

Adrian L Lange [04-27-13 - 22:02]
Have to set the difficulty first due to the Dungeon Journal
Filename
HabeebIt.lua
diff --git a/HabeebIt.lua b/HabeebIt.lua
index fae53cb..effc036 100644
--- a/HabeebIt.lua
+++ b/HabeebIt.lua
@@ -154,13 +154,13 @@ local function InitializeList(specialization, shown)
 		UpdateSpecializations(specialization)
 	end

+	local _, _, difficulty = GetInstanceInfo()
+	EJ_SetDifficulty(difficulty > 2 and (difficulty - 2) or 1)
+
 	local currentInstance = EJ_GetCurrentInstance()
 	EJ_SelectInstance(currentInstance > 0 and currentInstance or 322)
 	EJ_SelectEncounter(currentEncounterID)

-	local _, _, difficulty = GetInstanceInfo()
-	EJ_SetDifficulty(difficulty > 2 and (difficulty - 2) or 1)
-
 	local _, _, classID = UnitClass('player')
 	EJ_SetLootFilter(classID, specialization and GetSpecializationInfo(specialization) or 0)