View Single Post
08-05-14, 05:32 PM   #4
Cybeloras
A Fallenroot Satyr
 
Cybeloras's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 28
GetInventoryItemsForSlot is still broken, too.

For anyone who really, really wants to use transmog, here's a bandaid fix:

Lua Code:
  1. local e,n,c,a,o=next,"GetInventoryItemsForSlot",0,{}o=_G[n]_G[n]=function(s,b,t)o(s,b,t)if t=="transmogrify"then c=0 for _ in e,b do c=c+1 end if not a[s]or a[s][1]<c then a[s]={c,CopyTable(b)}else wipe(b)for k,v in e,a[s][2]do b[k]=v end end end end

Obfuscated to be short enough to fit in a single /run chat command (perfectly - not a single char to spare). It works by caching the longest list of items found for a given slot. If your list of items changes, you will need to reload your UI and re-run the fix in order to transmog those items.