Making Flying Enemies harder to hit, Except when a skill is used

I was wondering if anyone has figured out a way to making enemies that fly harder to hit, and to go along with that how they would setup a skill that negates advantage? I've been kind of going in circles thinking this through and wasn't able to find any type of tutorial or anything... Using MZ, V1.6.0 with currently no plugins.
Cheers! TIA!
The easy way to start it would be to make a flying state that has an evasion boost on it. You can apply that state to enemies using a turn 0 troop event or a plugin that allows passive states.

Then you can use items or skills that remove that state to negate the advantage.

If you want it to be more like "shooting with a ranged weapon doesn't suffer the flying penalty," you'd need to use a plugin that lets you adjust the hit formula. The thread linked in my signature offers one, there are a few others.
Thanks! I think the states section should work, but I'll look to see if there's any plugins that handle it more elegantly. Lol

Original thread: https://forums.rpgmakerweb.com/threads/making-flying-enemies-harder-to-hit-except-when-a-skill-is-used.166504/