Hide ability FF4 (Bard)

Hello everyone,
I' m new here in the forum and relatively new at RPG Maker MV.
I'm here to ask how can i make such skill, since i have tried using Yanfly great plugins but i have also encountered a problem.
First of all, i will post all links to Yanfly plugins i have used and the code of my ability.

Target Core

http://yanfly.moe/20...74-target-core/

Selection Core

http://yanfly.moe/20...ection-control/

I have made the ability in a way similar to Yanfly jump ability, which means that we' ll have three parts:

--- Part one: Transfer ---

<Learn Cost: 1000 JP>

<Learn Require Eval>

if (this._actor.level >= 24) {

value = true;

} else {

value = false;

}

</Learn Require Eval>

<Learn Show Eval>

value = true;

</Learn Show Eval>

<Learn Custom Text>

Necessario livello 24

</Learn Custom Text>


<Custom Show Eval>

if ($gameParty.inBattle()) {

visible = true;

} else {

visible = false;

}

</Custom Show Eval>


<Instant>

<setup action>

clear battle log

display action

perform start

wait for movement

immortal: targets, true

</setup action>


<target action>

action effect: user

se: Skill3, 100, 100, 0

motion skill: user

wait: 24

animation 117: user

wait: 24

opacity user: 0%, 24

wait for opacity

float user: 1000%, 1

wait for float

wait for animation

add state 163: user

</target action>


<finish action>

clear battle log

perform finish

wait for movement

</finish action>


--- Part two: Transfer State ---


<Cannot Select: All>

<Custom Leave Effect>

// Get the landing skill.

var skill = 518;

// Get the last targeted index.

var target = -2;

// Queue the forced action.

user.forceAction(skill, target);

BattleManager.forceAction(user);

</Custom Leave Effect>


--- Part Three: Materialization State ---


<setup action>

clear battle log

display action

</setup action>


<target action>

</target action>


<follow action>

animation 117: user

wait: 24

float user: 0%, 1

wait for float

opacity user: 100%, 24

wait for opacity

wait for animation

</follow action>


<finish action>

clear battle log

perform finish

wait for movement

immortal: targets, false

</finish action>


-----------------------------------------------

That being said, my problem is in the tag <Cannot Select: All>.
The Yanfly plugin works great as always so i may have did some mistakes of course, but... when my actor has the Transfer State (the second one above) and he's alone in battle (the other party members ARE dead), i have immediately the game over scene.
It could be possible that the enemy cannot select his target because of the notetag <Cannot Select All>? If so, how could i find
a way in order to have my skill works properly?
Also, i know that in database i could use the functions Eva and Mev but in that way the actor in question could be targeted by
any move that below such statistics... i other words, i want to make so that the skill never hit.

Thanks in advance and for your patience!

I've moved this thread to Plugin Support. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/hide-ability-ff4-bard.101375/