Help modifying multi target and multi hit attacks

So I'll try not to wall of text on my first post (a question no less! so sorry!)

I'm a javascript dev in my real life, but very different JS then the mv code base. No hate by the way, digging the code as I'm reading it.

Question 1:
How do I prevent duplicate attacks in random number of targets attack?
I basically want to make attacks that target more than 1 random target target subject().***stat*** targets. I could accept just using mtk if I had to, but I DON'T want to hit the same guy twice. So I've got a plugin up and am overriding functions all well and good. I've rewrote Game_Action.prototype.numTargets to return this.isForRandom() ? this.subject().atk : 0; which works reasonably as a proof of concept. But I can't seem to get Game_Action.prototype.repeatTargets to NOT hit the same target over and over again. >.< I'm pretty sure I want a check inside the for loop that adds to the if(target) something like if(target && isNotADupe) but I can't figure out how to see if a given target is duplicated in the targets list. Is there some sort of unique identifier? enemyId() is from the db, so a group of the same enemy that doesn't work on. Am I missing something obvious?

Question 2:
Where are repeats done in the code?
I also want to change repeats, IE repeat this attack X times, to repeat ***stat*** times, but I cannot figure out where that's actually being done.

Question 3:
Any example code of parsing comment blocks?
I notice a bunch of (freaking great) plugins are parsing the notes sections on skills to do things like... say... control what stat controls repeats and multiple targets ^_^ any good examples of how that's being done? I've no trouble reading their code, but a Yanfly Engine Plugin is usually doing an awful lot more making it a touch hard to dig out that specific functionality.

Thanks for taking the time to read an oversized post from a newbie!

Original thread: https://forums.rpgmakerweb.com/threads/help-modifying-multi-target-and-multi-hit-attacks.77160/