The AI tries to heal Decaying enemy characters to damage them. It's okay and that's how it should work, but I've just had a case where AI used Cleanse Wounds on my character to damage it. But AI didn't "know" that this particular skill removes Decaying first, and then heals, so no damage applied and my character got healed instead.