Limiting attacks based on row

I am using Yanfly's RowFormation plugin.on the player side I have went and made all attacks have appropriate <Row Only> flags. So, I have the player side working. The problem is the monster side. I want to make it so that a monsters melee attack can only target a player in row 1, a reach attack can target row 1-2, a ranged attack can hit 1-3.


i think that I will have to use 


battler.row()


to find a battlers row, but there's also 


$gameParty.rowMembers(1)


to return all members in row 1. 


How can I properly use one of those tags to make an enemy only attack party members in certain rows?
If the skills the monsters are using have that tag it should work for them too.
Using the same tag that I used on the player skills leaves the monsters unable to attack. I'm not trying to base this on the


monsters location, because I'm not letting them move, but on the player. Placing <Row Only: 1> requires that I have the monster move to row one. I want an attack that can target players that are in row 1 regardless of where the monster is. 


With th monsters that don't move using that tag results in the monster skipping its turn. 
Will, you will see me a lot, since D&D is also my inspiration. For what you want, you may use YEP Weapon Unleash to create dummy attacks for the reach and ranged weapons and YEP Target Core for the closest row limitation.
If you use Yanfly's Taunt plugin, you can make your first row apply a passive state that applies the taunt, and enemies will then only attack players in front row. 

Original thread: https://forums.rpgmakerweb.com/threads/limiting-attacks-based-on-row.61562/