From 43c29e96af48be2ae6b37ef72034019c8cfb4a99 Mon Sep 17 00:00:00 2001 From: Salted <44394537+xian18@users.noreply.github.com> Date: Sun, 2 Oct 2022 21:40:00 +0800 Subject: [PATCH] fix typo of 'True' --- js/plugins/SF_StateSuperpose.js | 5 +++-- js/plugins/SF_StatesOverride.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/js/plugins/SF_StateSuperpose.js b/js/plugins/SF_StateSuperpose.js index 42a120d..daddbb3 100644 --- a/js/plugins/SF_StateSuperpose.js +++ b/js/plugins/SF_StateSuperpose.js @@ -4,7 +4,7 @@ //============================================================================= "use strict"; var Imported = Imported || {}; -Imported.SF_StateSuperpose = True; +Imported.SF_StateSuperpose = true; var SF_Plugins = SF_Plugins || {}; //============================================================================= @@ -91,7 +91,8 @@ Game_Battler.prototype.addState = function (stateId) { var turns = this._stateTurns[stateId]; this.states().forEach(function (state) { if (state.SF_StateSuperpose_ID === stateSuperpose_ID) { - this._stateTurns[stateId] = turns; + this.addState(state.id); + this._stateTurns[state.id] = turns; } }, this); } diff --git a/js/plugins/SF_StatesOverride.js b/js/plugins/SF_StatesOverride.js index 4d7c2e6..efe900d 100644 --- a/js/plugins/SF_StatesOverride.js +++ b/js/plugins/SF_StatesOverride.js @@ -4,7 +4,7 @@ //============================================================================= "use strict"; var Imported = Imported || {}; -Imported.SF_StateOverride = True; +Imported.SF_StateOverride = true; var SF_Plugins = SF_Plugins || {}; //=============================================================================