[Bug] States always get applied

So, I tested this out in a new project and it seems to be a bug in the engine itself. Basically, no matter what % you give an enemy regarding resistance to certain states, like poison or sleep, it always works. Even if it is set to 0%. The only way to prevent it is to actually say the enemy completely resists that state. I have only tested it with the poison state, caused by an item used on an enemy (no idea about actors or spells), but as said, it always worked, even if the enemy had 0% chance to get said state. 

The item applies "poison" 100% of the time, is a certain hit with 100%. 

Enemies normaly have 100% chance that states get applies. Reducing that to anything, even 0%, above item still was effective. 

Adding complete resistance to the enemy worked, the item had no effect then. But well, that's not really what I wanted. xD

And as said, I tested it on a new project without any plugin, so it's not a plugin causing this.
Hi,

Unlike in VXAce, when a skill/item has the hit type "Certain Hit", the targets state rates and LUK effect rate are ignored when applying states (according to the rpg_objects.js file). This is at least the case for single states: when adding "Attack States" the hit type doesn't seem to matter for some reason.
So, basically, changing the item from "Certain Hit" to "Physical Hit" should solve this? Hm, I'll test it then.

Original thread: https://forums.rpgmakerweb.com/threads/bug-states-always-get-applied.50673/