MV [YEP_TargetCore]Custom Target Text messes up target selection

Hello!
Basically, i was using the Custom Target Text function of Yanfly's plugin so to add some special text for a skill.
This is the code:

Spoiler
Code:
<Custom Target Text>
var target = BattleManager._subject.currentAction().makeTargets().clone()[0];

if(target.isEnemy())
{
    text = $dataEnemies[target.enemyId()].name+'\n';

    if($dataEnemies[target.enemyId()].meta.monsterSkill)
    {
        if(!user.hasSkill(parseInt($dataEnemies[target.enemyId()].meta.monsterSkill)))
        {
            text+='(';

            var actorSkill = Math.floor((user.level+2) / 3) + Math.floor((user.luk - 10) / 2);
            var monsterChance = parseInt($dataEnemies[target.enemyId()].meta.captureChance) + (parseInt($dataEnemies[target.enemyId()].meta.captureChance) * ((target.mhp - target.hp) / target.mhp));

            text += Math.floor(actorSkill+monsterChance);
            text += '%';
        }
        else
        {
            text += '(';
            text += 'DOUBLE';
        }
    }
    else
    {
        text +=' (';
        text += 'NOT CATCHABLE';
    }
    text += ')';
}
</Custom Target Text>

And that part works. The problem i have is that, when it comes to selecting a target, the game highlights all enemies on the field like it's an AOE skill, when it should actually target only one. And to add to that, when i try using switching between targets the game can't catchup with what i'm selecting, and it makes it very confusing. Is it a problem with my code? Or a functionality of Custom Target Text i'm unaware of?

EDIT: Added image for better understanding. The skill, i repeat, should target a single enemy, but the game highlights all enemies.
Schermata 2020-08-22 alle 22.44.43.png

Original thread: https://forums.rpgmakerweb.com/threads/yep_targetcore-custom-target-text-messes-up-target-selection.125766/