From 3655cd07b276ae3f777a80102ce07eb0d1037ce1 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Mon, 15 Oct 2012 09:12:30 +0400 Subject: [PATCH] It's better this way imo --- ElvUI_SLE/core/test.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ElvUI_SLE/core/test.lua b/ElvUI_SLE/core/test.lua index b937220..572322f 100644 --- a/ElvUI_SLE/core/test.lua +++ b/ElvUI_SLE/core/test.lua @@ -30,12 +30,12 @@ E.Options.args.sle.args.general.args.autoloot = { function AL:LootShow() --Needs to be run on PLAYER_ENTERING_WORLD event = loading screen ends. Also need a module assinged. local inInstance, instanceType = IsInInstance() --local isDungeon = (instanceType == "party") - if (inInstance and (instanceType == "party" or "raid") and E.db.sle.autoloot) then + if (inInstance and (instanceType == "party" or "raid") and E.db.sle.autoloot) then --in instance with option enabled LootHistoryFrame:Show() - print("Loot Window Show") - else + elseif (inInstance and (instanceType == "party" or "raid") and not E.db.sle.autoloot) then --in instance with option disabled + elseif (not inInstance and E.db.sle.autoloot) then--out of instance with option enabled LootHistoryFrame:Hide() - print("Loot Window Hide") + else --out of instance with option disabled end end -- 1.7.9.5