MZ Have a certain type of weapons uncounterable

I'd like to make it so that bows cannot be countered even if the enemy has CNT 100%.
Is this possible? I also have Visustella.
Ooh, that's a tough one. Modifying ex-parameters based on the user's stats is easy, but changing the *target* isn't, because in the formula that calculates them, there's no attacker/target relationship to reference. And CNT isn't an actual value you can change in a notetag.
Pity because it's a bit silly that long range weapons can get countered.
Happy Birthday.
Spoiler: old info
i have no idea on MZ but if its similar to MV, you need to find the function:
JavaScript:
BattleManager.invokeCounterAttack = function(subject, target) {
Spoiler: related function in MV Managers
JavaScript:
BattleManager.invokeCounterAttack = function(subject, target) {
    var action = new Game_Action(target);
    action.setAttack();
    action.apply(subject);
    this._logWindow.displayCounter(target);
    this._logWindow.displayActionResults(target, subject);
};
there you could add some small scripts to make sure this wont be triggered if you dont want to.

this Function shoud be located somewhere in the RPG Managers Plugin..

(its probably better to build a mini plugin which overwrites the function instead of editing the original rpg plugin)

- subject & target are the data of the 2 battlers
(not sure which one is which one)

- Than you need the MZ script for:
"if attackers Wtype id is not bowType"
..and use this script as condition to trigger the main script

this should not be much script or coding work i just dont use MZ thats why i cant help on the detailed script info sry.

its allready solved so my text isnt needed^^
Happy Birthday.

Thank you very much 👍

Original thread: https://forums.rpgmakerweb.com/threads/have-a-certain-type-of-weapons-uncounterable.151812/