I have an accessory which adds to the ordinary attack a chance to inflict state 65. It looks like this:
However, I have discovered that it does more than I want.
At the moment it is equipped to Actor 4, but it could be anyone. Actor 4 has a self-heal skill. Its setup is bog standard, but I include it here in case it's needed.
View attachment 289215
I have just noticed that using this skill she can inflict herself with state 65. I don't understand how something that is designated to add a state via Attack can do it with a heal skill, but if that's the way things work, I need to amend the notetag so as to exclude the user as target.
Can anyone help me out?
Thank you.
Code:
It works fine and does what I want.<JS Post-Damage as User>
if (!target.isDead() && Math.random()<.4)
target.addState(65);
</JS Post-Damage as User>However, I have discovered that it does more than I want.
At the moment it is equipped to Actor 4, but it could be anyone. Actor 4 has a self-heal skill. Its setup is bog standard, but I include it here in case it's needed.
View attachment 289215
I have just noticed that using this skill she can inflict herself with state 65. I don't understand how something that is designated to add a state via Attack can do it with a heal skill, but if that's the way things work, I need to amend the notetag so as to exclude the user as target.
Can anyone help me out?
Thank you.