var/icon/I = new(M.icon)
I.Blend(rgb(0,0,0,100),ICON_SUBTRACT)
M.icon = I
This takes away some opacity, just like it's supposed to.
var/icon/I = new(owner.icon)
I.Blend(rgb(0,0,0,100),ICON_ADD)
owner.icon = I
However, this also takes opacity away. How can I add opacity into an icon?
And yes, owner and M are the same mob, I'm positive.
...
Note: Currently, the alpha value of each pixel is only calculated as totally transparent or totally opaque. If you use Blend() with partially opaque icons the resulting alpha mask is unpredictable.