-Added 2 new functions : GetBuffSourceNID and GetBuffSourceName where the args are unit, index, ex :
for i = 0, myHero.buffCount do if GetBuffCount(myHero, i) > 0 then -- checking if buff is valid print(GetObjectName(GetObjByNetID(GetBuffSourceNID(myHero, i)))) print(GetBuffSourceName(myHero, i)) end end
-All buff structs (OnUpdateBuff/OnRemoveBuff/GetBuffData) got 2 new members (.SourceNID and .SourceName)
OnUpdateBuff(function(unit, buff) if unit.isMe then print(buff.SourceName) end end)