Skip to content

Instantly share code, notes, and snippets.

@tekkub
Created December 10, 2009 09:19
Show Gist options
  • Select an option

  • Save tekkub/253232 to your computer and use it in GitHub Desktop.

Select an option

Save tekkub/253232 to your computer and use it in GitHub Desktop.
local f = CreateFrame("Frame", nil, UIParent)
f:RegisterEvent("START_LOOT_ROLL")
f:SetScript("OnEvent", function(_, _, id)
if not id then return end -- What the fuck?
local _, _, _, quality, bop, _, _, canDE = GetLootRollItemInfo(id)
if quality == 2 and not bop then RollOnLoot(id, canDE and 3 or 2) end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment