Double_X

PATB Patch(Cinnamon)

Aug 11th, 2017
747
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.  * 2. Yanfly Engine Plugins - Target Extension - Selection Control
  7.  */
  8.  
  9. if (Imported.YEP_X_VisualHpGauge || Imported.YEP_X_SelectionControl) {
  10.  
  11. Scene_Battle.prototype.close_patb_windows = function() { // Rewrite
  12.     // Rewritten to stop deactivating the enemy window upon battle end
  13.     var windows = [this._actorWindow, this._skillWindow];
  14.     windows = windows.concat([this._itemWindow, this._actorCommandWindow]);
  15.     windows.concat([this._partyCommandWindow]).forEach(function(window) {
  16.         window.hide();
  17.         window.deactivate();
  18.         window.close();
  19.     });
  20.     this._enemyWindow.hide();
  21.     this._enemyWindow.close();
  22.     //
  23. }; // Scene_Battle.prototype.close_patb_windows
  24.  
  25. }; // if (Imported.YEP_X_VisualHpGauge || Imported.YEP_X_SelectionControl)
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×