Quantcast

Revert ce77f450f266dbeb93939a549a6ab879fc69d751 and f97cf27e7285351f656b3e147e8fa379ffb2425b

Adrian L Lange [06-19-14 - 11:33]
Revert ce77f450f266dbeb93939a549a6ab879fc69d751 and f97cf27e7285351f656b3e147e8fa379ffb2425b
Filename
Encounters.lua
HabeebIt.lua
diff --git a/Encounters.lua b/Encounters.lua
index 87d42ca..29f9ed0 100644
--- a/Encounters.lua
+++ b/Encounters.lua
@@ -55,7 +55,7 @@ local encounters = {
 	[145910] = 849, -- The Fallen Protectors
 	[145911] = 866, -- Norushen
 	[145912] = 867, -- Sha of Pride
-	[145913] = {868, 881}, -- Galakras
+	[145913] = 868, -- Galakras
 	[145914] = 864, -- Iron Juggernaut
 	[145915] = 856, -- Kor'kron Dark Shaman
 	[145916] = 850, -- General Nazgrim
diff --git a/HabeebIt.lua b/HabeebIt.lua
index 23797f4..16b4ffa 100644
--- a/HabeebIt.lua
+++ b/HabeebIt.lua
@@ -279,19 +279,7 @@ function Container:Update()

 	local currentInstance = EJ_GetCurrentInstance()
 	EJ_SelectInstance(currentInstance > 0 and currentInstance or 322)
-
-	if(type(currentEncounterID) == 'table') then
-		for _, value in pairs(currentEncounterID) do
-			EJ_SelectEncounter(value)
-
-			if(EJ_GetNumLoot() > 0) then
-				currentEncounterID = value
-				break
-			end
-		end
-	else
-		EJ_SelectEncounter(currentEncounterID)
-	end
+	EJ_SelectEncounter(currentEncounterID)

 	local _, _, classID = UnitClass('player')
 	EJ_SetLootFilter(classID, GetLootSpecialization() or GetSpecializationInfo(GetSpecialization() or 0) or 0)