[RESOLVED]Need help to Galv Magic Shards

Hello,

I use Galv's Magic shards plugin for various passive states and bonus, but I don’t want the player abuse it.
I would want penalize the player if he use 2 identicals shards for one actor.

Ex: I have a bonus HPmax +20% and my actor have 6 slots, if the player abuse of the bonus he can have HPmax +240% 😐

I don’t want touch the plugin, I intend to use common event to check with script condition if the actors(2) slot(1)===actors(2) slot(2), etc…
But just I don’t know what write in the script condition. 😢

A friend give me
Code:
$gameActors.actor(2)._shardSlots(1) === $gameActors.actor(2)._shardSlots(2)
but it’s doesn’t work

Can you help me please ?
The link to Galv's website Magic Shard Plugin is: https://galvs-scripts.com/2015/11/18/mv-magic-shards/

The link to the plugin is: http://textup.fr/236137S1

Thanks for reading me
PS: sorry for English, it’s not my native language
PPS: I already contact Galv and he told me he are too busy and try in forum
Please
tenor.gif

Original thread: https://forums.rpgmakerweb.com/threads/resolved-need-help-to-galv-magic-shards.88557/