MV Modification or alternative to Yanfly Region Restrictions to apply only to tagged events

I love Yanfly's Region Restrictions but it will restrict passage to all events except those with through enabled. Is it possible to add a tag check so it will only block tagged events? For example, I want to block a fish from going out of the water tiles but currently I can only block all events from entering or leaving water tiles.

I eventually solved this myself, so here's the fix:
On line 336 in YEP_RegionRestrictions.js
Before
if (regionId === 0) return false;

Add
Code:
if($dataMap.events[this._eventId] && $dataMap.events[this._eventId].meta.fish){
        if(regionId === 2 || regionId === 3) return false;
         else return true;
    }

That will make it so an event with <fish> in its notebox can only move on regions labeled 2 or 3, and be blocked from moving out of those regions. You can edit it to add or remove regions as you like.

There is also Waynee95's plugin which will allow events with certain notetags to bypass restricted regions

Original thread: https://forums.rpgmakerweb.com/threads/modification-or-alternative-to-yanfly-region-restrictions-to-apply-only-to-tagged-events.155306/