Disable Escape on Random Encounter

Hello !

I'm looking for a way to disable Escape in Random Encounter.

Thank you for your help !
Copy and paste the following into a new .js file in your Plugin folder. Call it whatever you like, and add it to your project.

Code:
Game_Player.prototype.executeEncounter = function() {    if (!$gameMap.isEventRunning() && this._encounterCount <= 0) {        this.makeEncounterCount();        var troopId = this.makeEncounterTroopId();        if ($dataTroops[troopId]) {            BattleManager.setup(troopId, false, false);            BattleManager.onEncounter();            return true;        } else {            return false;        }    } else {        return false;    }};
It works perfectly.

Thank you so much for this quick answer ! ^^

Original thread: https://forums.rpgmakerweb.com/threads/disable-escape-on-random-encounter.50790/