Enemy Smart Healing

Does anyone have a script for this? I've googled the crap out of this and can't find anything that works the way I need.

I need a script that will NOT cast heal on a full life ally. It will only heal if the target is below X%. It would be ideal if the priority number could be high on this so IF heal can be cast, it will guarantee that the heal will be the next cast the AI will do.

If no one knows of a script like this, can someone make one? Much appreciated!
Won't Archeia's advanced AI conditions script work for this?
Wrong section by the way, this section is for completed scripts only. Should get it moved to RGSS Script Request. [Mention it's for Ace]

Original thread: https://forums.rpgmakerweb.com/threads/enemy-smart-healing.37505/