Quantcast

Hide the quest detail if it's already accepted

Adrian L Lange [08-06-12 - 11:53]
Hide the quest detail if it's already accepted
Filename
Monomyth.lua
diff --git a/Monomyth.lua b/Monomyth.lua
index b0d72a8..424a71b 100644
--- a/Monomyth.lua
+++ b/Monomyth.lua
@@ -130,6 +130,8 @@ end)
 Monomyth:Register('QUEST_ACCEPTED', function()
 	if(GossipFrame:IsShown() and GetNumGossipAvailableQuests() == 0 and GetNumGossipCompletedQuests() == 0) then
 		CloseGossip()
+	elseif(QuestFrame:IsShown()) then
+		HideUIPanel(QuestFrame)
 	end
 end)