Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------
- local function IterateUnitButtons( name )
- local unitid = UnitInRaid( name )
- if unitid == nil then return end
- unitid = "raid" .. unitid
- local frame = nil
- return function()
- while true do
- frame = EnumerateFrames( frame )
- if frame == nil then return end
- if frame:GetAttribute( "unit" ) == unitid
- and frame:GetScript( "OnClick" ) == SecureUnitButton_OnClick then
- return frame
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement