Help with targeting Rows (YEP Row formations)

Hi,
I have seen this part of code from Yanfly's tutorials for a skill, which is like a Piercing Arrow.

<Custom Target Eval>
// Get the target's current row.
var row = target.row();

// Get the target's allies.
var group = target.friendsUnit();

// Loop through each of the rows in your game.
for (var i = row; i <= Yanfly.Param.RowMaximum; ++i) {

// Get the members of the row's alive members.
var members = group.rowAliveMembers(i);

// Check if the member group is larger than 0.
if (members.length > 0) {
// Add a random target from that group.
targets.push(members[Math.floor(Math.random() * members.length)]);
}
}
</Custom Target Eval>

<Damage Formula>
// Default the chain multiplier to 1.
this._chainmultiplier = this._chainmultiplier || 1.0;

// Calculate the damage formula.
value = user.atk + user.agi;

// Apply multiplier to damage formula.
value *= this._chainmultiplier;

// Reduce the multiplier by 0.15 per target.
this._chainmultiplier -= 0.15;
</Damage Formula>

What it does is select a target, then another one from the row behind and so on. Each new target recieves less damage.
What I want to change is that instead of selecting one single target, it selects the entire row. I have searched and tried and I can't find the way to do it xD. Does anyone know how?
Thanks 😉

EDIT: The problem is semi-solved, I want the skill to always target first the front row but doesn't work.
Were you ever able to figure this out for targeting the whole row?
Nope 🙁
Do you have Target Core installed? If you do just use this notetag:
<Target: Enemy Row x>
And place it above the Piercing Arrow Notetags.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-targeting-rows-yep-row-formations.89792/