Charm when attacking

Aloha! I'm trying to add a new state called "Succubus". And basically, when the person who's infected by succubus gets attacked, the attacker has a 10% chance of getting charmed.
Thank you for your time.😀
You'd use the VisuStella Battle Core, and give your succubus state the notetag:
Code:
<JS Post-Damage as Target>
if (Math.random()<.1)
    user.addState(X);
</JS Post-Damage as Target>

where X is the ID of your charm state, no leading zeros.
Thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/charm-when-attacking.155795/