Advertisement
MV_Musashi

Enemies Retain States

Dec 22nd, 2015
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //====================================================================================
  2. //
  3. // Enemies Retain States
  4. //
  5. //====================================================================================
  6. /*:
  7.  * @plugindesc Enemies will retain states on death.
  8.  * @author Musashii
  9.  */
  10. //====================================================================================
  11.  
  12. (function() {
  13. Game_BattlerBase.prototype.die = function() {
  14. if (this._enemyId > 0 ) {
  15.     this._hp = 0;
  16.     this.clearBuffs();
  17. }
  18. else {
  19.     this._hp = 0;
  20.     this.clearStates();
  21.     this.clearBuffs();
  22. }};
  23.   })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement