Well, it is certainly possible. There are surely several ways to simulate such a result.
I wrote such a script for my improved spells mod. Maybe I can extract it for you, but I'am not certain it will work under WoG.
Edit: the script contains SN:W variables so i guess it will not work under pure WoG?, you need new ERA version, if you want to use it.
Edit: Anyway they idea is you when you cast Dispel is saves all buffs on your creatures and after Dispel they get reapplied, so you dont loose them. And for the AI I would just remove the spell from his spell book.
(This post was last modified: 01.03.2020 15:38 by PerryR.)