MZ A script that can make the enemy untargetable (for mz, so yanfly mv plugins won't work)

So basicly what the thread text says, sorta trying to find a plugin that can do that, but wherever I go, I can only find some that are mostly from VXace, or well the yanfly mv cores.

though I do use visustella.

but yea, anyone can help me with that?

Original thread: https://forums.rpgmakerweb.com/threads/a-script-that-can-make-the-enemy-untargetable-for-mz-so-yanfly-mv-plugins-wont-work.166845/