MZ Forcing Dodge Anim. on a Miss

Is it possible to have the player characters' dodge animation ALSO play on an enemy missing their attacks/skills against them? In short, to treat a miss as a dodge.
try this:

Code:
Window_BattleLog.prototype.displayMiss = function(target) {
    let fmt;
    if (target.result().physical) {
        const isActor = target.isActor();
        fmt = isActor ? TextManager.actorNoHit : TextManager.enemyNoHit;
        this.push("performEvasion", target);
    } else {
        fmt = TextManager.actionFailure;
    }
    this.push("addText", fmt.format(target.name()));
};
You're amazing! 😎

I've modified how HIT and DODGE work together in my game quite a bit using another plugin. Took a long while to get a formula I felt was right (especially understanding the concept of 'min(' having the biggest number and 'max(' having the smallest), testing it on Xcel/OpenOffice (convenient for making calculation tables to test multiple outcomes/values on the fly!) One method I could have gone with was inverting the balance of both HIT and DODGE but it wouldn't have looked right and potentially caused issues down the line... Your solution works like a charm. Thank you!
Closed as solved

Original thread: https://forums.rpgmakerweb.com/threads/forcing-dodge-anim-on-a-miss.183954/