This is causing a crash when used by enemies in the Damage Formula:
The specific State doesn't matter, and whether or not there is anything else in the formula doesn't matter. It works when actors do it, but it gives me this error when enemies try it:

It isn't causing this problem if I apply it through Skill Core's <Before Eval> notetags, which makes me think it has something to do with the way it's working in the damage formula. But the fact that it works fine for actors really has me scratching my head. It doesn't have this problem without plugins.
Anyone know what the problem is?
Code:
b.addState(5);
The specific State doesn't matter, and whether or not there is anything else in the formula doesn't matter. It works when actors do it, but it gives me this error when enemies try it:

It isn't causing this problem if I apply it through Skill Core's <Before Eval> notetags, which makes me think it has something to do with the way it's working in the damage formula. But the fact that it works fine for actors really has me scratching my head. It doesn't have this problem without plugins.
Anyone know what the problem is?