Вобщем код
плюсPHP код:
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 or 3 or 4 and not bop then RollOnLoot(id, canDE and 3 or 2) end
end)
аддон ConfirmDisenchantRoll
выходит то что мне и нид , всем спасибо )