Go farm some Demonic runes which state "restores 900 to 1500 mana at the cost of 600 to 1000 life" when your fighting and some adds come or you get low on life pop it and you do damage to your self and so long as the Damage caused>then your current health you have, it will kill you and processes so that you take no 10% decay. Also it can be programmed into your bot if health=< then use itemslotXX or whatnot =) Hope its useful.
P.S just tested it and it works =)