Remove flashing on map before you go into a battle?

How do you remove the flashing the screen does before you go into a battle from the map?
Make a plugin with the following code:
Code:
Scene_Map.prototype.startFlashForEncounter = function() {};
This essentially overwrites the code responsible for flashing with code that does nothing at all.

However, this will permanently disable flashing (before a battle). If you only want to disable flashing for some battles and not others, you'll have to make a bunch of adjustments to your plugin.
Keen gear! Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/remove-flashing-on-map-before-you-go-into-a-battle.92977/