View Single Post
12-26-11, 02:57 AM   #6
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
InterruptBar does not give its frame a global name, so you cannot (easily) access it from outside of the addon's own Lua file. The following simple modification to InterruptBar.lua should work.

Find this line, near the end of the file:
Code:
	["COMBAT_LOG_EVENT_UNFILTERED"] = function(self,...) InterruptBar_COMBAT_LOG_EVENT_UNFILTERED(...) end,
After it, add:
Code:
	["ZONE_CHANGED_NEW_AREA"] = function(self)
		local _, instanceType = IsInInstance()
		if instanceType == "arena" or instanceType == "pvp" or (instanceType == "none" and GetZonePVPInfo() == "combat") then
			self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
			self:Show()
		else
			self:UnregisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
			InterruptBar_ResetAllTimers()
			self:Hide()
		end
	end,
  Reply With Quote