The apply function from Game_Action in rmmz_objects.js is where the accuracy of the action being used is tested.
Code:
Game_Action.prototype.apply = function(target) {
const result = target.result();
this.subject().clearResult();
result.clear();
result.used = this.testApply(target);
result.missed = result.used && Math.random() >= this.itemHit(target);
result.evaded = !result.missed && Math.random() < this.itemEva(target);
result.physical = this.isPhysical();
result.drain = this.isDrain();
if (result.isHit()) {
if (this.item().damage.type > 0) {
result.critical = Math.random() < this.itemCri(target);
const value = this.makeDamageValue(target, result.critical);
this.executeDamage(target, value);
}
for (const effect of this.item().effects) {
this.applyItemEffect(target, effect);
}
this.applyItemUserEffect(target);
}
this.updateLastTarget(target);
};
The lines
result.missed = result.used && Math.random() >= this.itemHit(target); and
result.evaded = !result.missed && Math.random() < this.itemEva(target); are where it's doing the math to figure out if an attack was missed or evaded.
It starts by checking the accuracy of the skill, then, if it passes that check, it checks the evasion rate of the enemy. Both of these are random number checks, and since it checks evasion second, even if the skill has greater than 100% accuracy, there is still the chance that even a 1% evasion rate on the target could cause the skill to miss. The function a bit later on
result.isHit() checks to make sure the action wasn't a miss, or an evade, or something else, before proceeding to check critical and deal damage.
The easiest way to change this is to modify how it checks the hit and evade conditions. I believe YEP's hit accuracy plugin simply subtracts the targets EVD from the subjects hit%, and never checks if an action has been evaded. You could do something like this instead to emulate it:
Code:
Game_Action.prototype.apply = function(target) {
const result = target.result();
this.subject().clearResult();
result.clear();
result.used = this.testApply(target);
result.missed = result.used && Math.random() >= (this.itemHit(target) - this.itemEva(target));
result.evaded = false
result.physical = this.isPhysical();
result.drain = this.isDrain();
if (result.isHit()) {
if (this.item().damage.type > 0) {
result.critical = Math.random() < this.itemCri(target);
const value = this.makeDamageValue(target, result.critical);
this.executeDamage(target, value);
}
for (const effect of this.item().effects) {
this.applyItemEffect(target, effect);
}
this.applyItemUserEffect(target);
}
this.updateLastTarget(target);
};
(note I haven't tested this so it might not work exactly, but this is a good starting point).
edit: the function result.isHit() has been censored because it contains the letters of a swear word. It is two words IS and HIT.