MV Looking for a plugin or any method to limit targeting of certain enemies

As the title said, I'm looking for a way to limit targeting of certain enemies. Ideally I would like to restrict certain actors with only melee weapons from being able to target certain (flying) enemies. Either restrict the actors or restrict the weapons/skills they use from being able to to target the flying enemies.
Check out Yanfly's Target and Selection plugins.
That looks like just the thing, thanks!
Is it possible to do this without the Row Formation plugin also? I wasn't able to get it to work properly (only tried for a short time), and it screwed up my party positioning in a major way, but it seems the only way to get what I want is to use that plugin also.

Edit: Disregard, I was able to play with the formulas in the plugin and I think I have my positioning back to a usable state. I'll keep tooling around with the settings until I get it to do what I want.
Is it possible to do this without the Row Formation plugin also?...it seems the only way to get what I want is to use that plugin also.
I know you said you figured something out, but just to clarify: neither the targeting nor selection plugins require you to use Row Formation.

If you do a Google, there are multiple existing threads on how to implement this you can find, probably with complete notetags and everything.
I wasn't able to see how selection control would do what I wanted on its own, but row formation definitely does, now that I have a basic understanding. My issue was that I didn't read closely enough to understand that row 3 was still the front row if there was nothing in rows 1 and 2. I think we're all good here now.
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-a-plugin-or-any-method-to-limit-targeting-of-certain-enemies.150897/