Skill with reset cd and new turn

Hello makers!


I'm currently working on a skill looking like "annie's disintegrate" and  "Irelia's Bladesurge". I watched yanfly's tips and tricks about, but i didn't find the way to do it.


I explain: User is a gunshooter. His skills costs some bullet (using yanfly's skills cost items plugin). But he got a special skill looking like a bouncing shoot. It costs 40 MP and one "Boucing bullet".


Buf it the skill kills its target, id like he refounds the bullet and he gets a new active turn (using atb system).


If anyone can offer me some help that would be great! 


(sorry for my bad english)


Kozy
If i remember well, Yanfly did a video tutorial that explain how to do Annie's Q spell. You just have to use Yanfly's InstantCast and remplace the "give you 40 mana" by "give you another turn and a bullet"
Yeah! I already watched this one. So i guess the first part looks like this:


<Post-Damage Eval>
if (target.hp <= 0) {
  user.gainItem(item.ItemCost);
}
</Post-Damage Eval>


But for the new turn and yanfly's instant cast i don' find the way to add it to the lines. same thing for cooldowns reduction.

Original thread: https://forums.rpgmakerweb.com/threads/skill-with-reset-cd-and-new-turn.56715/