This is great work, very impressed.
I am having trouble getting it to work for me though, I've just been messing around a bit with it tonight. My problem is the first appearance of and icon goes smoothly but when it appears again it returns the icon name as N/A. Have I made an obvious error?
All the script was doing was applying a bandage if hits < maxhits and healing wasn't in buff bar icon names. Which works the first time but not the second.