MV make tint "avoid" events

Hi, I'm developing a plugin for a battle system in my game. What brings me here is that I want the tint event to not affect events. Is that possible? here is the line of code:

if (highlightTiles) {
highlightCounter--;
if (highlightCounter <= 0) {
$gameScreen.clearTone();
highlightTiles = null;
} else {
$gameScreen.startTint([0, 0, 255, 255], 0);
}
}

this.events().forEach(function(event) {
if (event.event().note.includes(`<${eventNoteTag}>`)) {
var tileX = Math.floor(TouchInput.x / $gameMap.tileWidth());
var tileY = Math.floor(TouchInput.y / $gameMap.tileHeight());

if (event.x !== tileX || event.y !== tileY) {
event.locate(tileX, tileY);
}
}
});
};
you can color events seperately ....


Code:
// changes tint for event 46
const character = $gameMap.event(46);
const sprite = SceneManager._scene._spriteset._characterSprites.find(
    spr => spr._character === character
);

if (sprite) {
    sprite.setColorTone([
    Math.floor(128*Math.random()-96),
    Math.floor(128*Math.random()-96),
    Math.floor(128*Math.random()-96),
    0]);
}

then, when you tint the screen, you will need to re-tint all the events to counteract the screen tint.
The tint is additive, so, if you want to undo the tint, you will need to provide the opposite tint.

Original thread: https://forums.rpgmakerweb.com/threads/make-tint-avoid-events.175789/