Alright, this should be simple. I'm using a plugin to make a skill that checks if the target has a certain state before actually taking effect. the code is as follows:
The obvious issue is that it's checking the user's state as opposed to the target's, but I don't know what to replace
Thanks in advance.
Code:
if (user.isStateAffected(4)) {
user with.Thanks in advance.