SHARE
TWEET

PATB Patch(Cinnamon)

Double_X Aug 11th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * Place this snippet right below DoubleX RMMV Popularized ATB Core
  3.  * All credits go to Cinnamon who provided this compatibility fix
  4.  * This fix applies to:
  5.  * 1. Yanfly Engine Plugins - Battle Engine Extension - Visual HP Gauge
  6.  */
  7.  
  8. if (Imported.YEP_X_VisualHpGauge) {
  9.  
  10. Scene_Battle.prototype.close_patb_windows = function() { // Rewrite
  11.     // Rewritten to stop deactivating the enemy window upon battle end
  12.     var windows = [this._actorWindow, this._skillWindow];
  13.     windows = windows.concat([this._itemWindow, this._actorCommandWindow]);
  14.     windows.concat([this._partyCommandWindow]).forEach(function(window) {
  15.         window.hide();
  16.         window.deactivate();
  17.         window.close();
  18.     });
  19.     this._enemyWindow.hide();
  20.     this._enemyWindow.close();
  21.     //
  22. }; // Scene_Battle.prototype.close_patb_windows
  23.  
  24. }; // if (Imported.YEP_X_VisualHpGauge)
RAW Paste Data
Top