function OmniBar:CHAT_MSG_SYSTEM(event, msg)
if GetRealmName() ~= "Blackrock [PvP only]" then
return
end
if not msg then
return
end
if msg:find("Duel starting:") then
wipe(self.spellCasts)
for _, bar in pairs(self.bars) do
wipe(bar.detected)
OmniBar_ResetIcons(bar)
OmniBar_UpdateIcons(bar)
end
end
end
------------------
Add this at the end of your OmniBar.lua file, and your Omnibar will reset/refresh before the start of every duel. Just thought I'd share, because it was bugging me. Only affects Blackrock server, so if you play on Icecrown / Lordaeron as well, it won't reset the bar.