Yanfly target core need help

I have relatively no knowledge on writing scripts and was wondering if anyone could help me with something relatively simple.
Im using Yanfly's target core and I ran into one problem I can't quite figure out. I need a spell to target one enemy and all allies. Anyone know how to make this happen?
Make your skill target 1 enemy via its standard scope in the database, then:

Code:
<custom target eval>
for (var i = 0; i < $gameParty.aliveMembers().length; i++)
{
  var member = $gameParty.aliveMembers()[i];
  targets.push(member);
}
</custom target eval>
Make your skill target 1 enemy via its standard scope in the database, then:

Code:
<custom target eval>
for (var i = 0; i < $gameParty.aliveMembers.length; i++)
{
  var member = $gameParty.aliveMembers[i];
  targets.push(member);
}
</custom target eval>
Thanks for the reply <3 but unfortunately it doesn't seem to work 🙁
I thought maybe it was something with my pre damage eval but when trying it again with just a normal ability it did the same thing.
It allows me to cast on the target but nothing happens at all.
I will be a bit more specific if it makes a difference. Im trying to make a spell that does damage to one enemy and heals my party. This is the script im using that works perfectly if im using <Target: Everybody>

<Pre-Damage Eval>

if (this.isHpEffect() && value > 0){

if (target.isActor()){

value = Math.round(-value * 0.25);

}

}

</Pre-Damage Eval>
Check my edit, I missed a couple of brackets when I first posted the code.
Check my edit, I missed a couple of brackets when I first posted the code.
Closer this time. It let me select the enemy and it did cast this time, but it only affected my party members. Any ideas?
Thanks for the help
Try this.

Code:
<custom target eval>
targets.push(targetUnit.smoothTarget(this._targetIndex));
for (var i = 0; i < $gameParty.aliveMembers().length; i++)
{
  var member = $gameParty.aliveMembers()[i];
  targets.push(member);
}
</custom target eval>
Try this.

Code:
<custom target eval>
targets.push(targetUnit.smoothTarget(this._targetIndex));
for (var i = 0; i < $gameParty.aliveMembers().length; i++)
{
  var member = $gameParty.aliveMembers()[i];
  targets.push(member);
}
</custom target eval>
Perfect! Thank you very much

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-target-core-need-help.106938/