Certain Hit Ignores State Rate Fix

So it has been brought to my attention that moves tagged as Certain Hit will ignore state rate. EX. An attack with Poison 1000% will poison a Poison State Rate 0% enemy, whereas if it's Physical or Magical it works but is victim to accuracy checks.

This is... not ideal for me, given that I want to have more control over this. Any way to tweak this?
Removes the certain hit bypass on state rate and luck rate modifiers.

Code:
Game_Action.prototype.itemEffectAddNormalState = function(target, effect) {
    var chance = effect.value1;

    chance *= target.stateRate(effect.dataId);
    chance *= this.lukEffectRate(target);
    if (Math.random() < chance) {
        target.addState(effect.dataId);
        this.makeSuccess(target);
    }
};
@ATT_Turan Come here often? 😂

In all seriousness, that did the trick. I guess they just never expected you to use Certain Hit for anything other than healing skills.
I guess they just never expected you to use Certain Hit for anything other than healing skills.
Maybe? It could also just be intended as a part of the word - certain is certain. Whatever you tell it to do, will be done. It can't miss, can't be dodged, applied effects can't be avoided.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/certain-hit-ignores-state-rate-fix.171803/