Ok i want a big ennemy to eat other ennemies around if they are alive but stop using this ability if he becomes alone and starting to focus on YOU heros

! I have a problem cause this "Big ennemy" keep using the ability on himself when all his fellow are dead and even when they are alive. The only target choice i have is one ally, all allies, or self. What i would like in this situation is simply "other allies" or event better: "insects" by using Hime's "Tag Manager" script.
I made some experiements and found differrent ways to deal damage only to other ennemies that himself, but no way to make a condition for using the ability only on other ennemies. Using Hime's "Tag Manager" makes this Big bird's ability to damage only "insects" for example.
As we can see on the image below, there is no way to add a script in skills conditions: only a limited choice of coditions.
So the general idea still doesn't fonction. It is imperative that once there is no more smaller ennemies around, the big one start focusing all it's energy on the heros instead of trying to use it's attacks on himself. Anybody can direct me on a way to deal wuth this project?
Thanks!
On the next image, we see there is no option to use the skill on both ennemis AND party.. what could be of some help also:
