See this boi?

This guy right here? He's a mimic.
What do mimics do? They surprise unaware adventurers.
So here's today's hack of the day.
Added this bit of code to LeTBS.js where the <Actor Cell> stuff is determined:
else if (note.match(/<Leader Cell>/i)) {
data.type = "actor";
data.fixed = $gameParty.leader().actorId();
}
What this does is it sets the cell's actor, to the actor who happens to be the Party Leader.
Pretty nifty!
But why is this important?
Well it is, because the party leader is the poor soul who triggered the mimic!!!!!!!!
Below,
1 denotes the mimic's <Enemy Cell>
2 denotes my new <Leader Cell>
3 denotes the remaining <Actor Cell>
But wait, there's more.
We want to at least
Warn the player? right?
So here, we say "This is strange' "Do you still wanna open?"
Most of the chests you can open up to this point are simple, wooden ones 'a la FSM

So stating the Red one "looks strange" might tip off the player, but maybe not.
The best part though is, in DND mimics have this nasty adhesive power.
I tried to replicate this as closely as possible, but its difficult to "Stitch" the player and mimic together,
So my adhesive state is this:

You're stuck, you lose 2 spaces of move but WAIT, you're focused by ai for offense now? HOOOO BOY!!! I chose this route to "Punish" The player.
Adhesive lowers the poor sap's atk by 50%.
Now, it gets better.
Using Yanfly's passive states. My mimic takes form
<Custom React Effect>
// Check to see if any physical damage is dealt.
if (value > 0 && this.isPhysical())
{
//Make the user become adhesive at 50% chance
var chance = Math.floor(Math.random() * Math.floor(2));
if(chance=1)
User.addState(); //inflict adhesive if chance = 1, otherwise chance=0, so do nothing
}
</Custom React Effect>
If you do physical damage, you have a 50% chance of auto-infliction of adhesive. This is because Mimic Adhesive makes EVERYTHING stick to it. So bye-bye sword.
Last but not least, since the Party leader touched the mimic, we should auto-inflict this sticky punishment. So I use this script, Right before the battle call:
$gameParty.leader().addState(426);
to inflict my adhesive state.
Now for testing:
below we see that Simon has been auto-placed:
And when I switch it up?
boom:
