How to check targeted enemy id?

I just want to make a skill that steal enemy's skill.


So, I want to check targeted enemy's id in database.


process is below.


When actor uses this steal skill, the enemy number in database is substituted to variable.


Then, in common event, change actor's skill following the variable.


I use some plugin.


Yanfly Skill core, TargetCore, Etc...


How I check the enemy number in database?
use this in damage formula 


v[x]=b.enemyId();
Oh! It's very simple!


Thank you, very much!


I can solve a important problem thanks to you!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-targeted-enemy-id.65963/