Target Row Restrictions?

I am using Yanfly's "Row Formation" plugin.
I want to determine which Rows of enemies each of my skills can target.
For example, i want skill X to only be able to hit an enemy that is either in Row n°2 or Row n°3, but not an enemy that is in Row n°1
I am sure that there is a way to make this happen through scripting, but i have next to no knowledge about it.
Sorry in advance if there was something obvious i missed, and thanks in advance for taking the time to read this.
The plugin don't offer this function. What it does is applying an state on the battlers based on their rows and allow to use an action from from specific rows,


You will need another plugin or edit the plugin to add this functionality.

Original thread: https://forums.rpgmakerweb.com/threads/target-row-restrictions.55360/