Disable auto-gossip in a raid instance
Adrian L Lange [06-01-12 - 01:57]
Disable auto-gossip in a raid instance
diff --git a/Monomyth.lua b/Monomyth.lua
index 2d65aee..4fc5826 100644
--- a/Monomyth.lua
+++ b/Monomyth.lua
@@ -72,7 +72,8 @@ Monomyth:Register('GOSSIP_SHOW', function()
end
end
- if(available == 0 and active == 0 and GetNumGossipOptions() == 1) then
+ local _, instance = GetInstanceInfo()
+ if(available == 0 and active == 0 and GetNumGossipOptions() == 1 and instance == 'raid') then
local _, type = GetGossipOptions()
if(type == 'gossip') then
SelectGossipOption(1)