Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Elly_ATB_processEscape = BattleManager.processEscape;
- BattleManager.processEscape = function() {
- $gameParty.performEscape();
- SoundManager.playEscape();
- var success = this._preemptive ? true : (Math.random() < this._escapeRatio);
- if (success) {
- $gameParty.removeBattleStates();
- $gameParty.performEscapeSuccess();
- this.displayEscapeSuccessMessage();
- this._escaped = true;
- this.processAbort();
- } else {
- this.displayEscapeFailureMessage();
- this._escapeRatio += this._escapeFailBoost;
- this._phase = 'atb';
- this.startTurn();
- $gameParty.clearActions();
- this.allBattleMembers().forEach(function(battler)
- {
- if (battler.isActor()) {
- battler.atb /= 10;
- }
- }, this);
- }
- return success;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement