|
|
@ -84,14 +84,14 @@ DataManager.SF_StateSuperpose_isDatabaseLoaded = function (group) {
|
|
|
|
//=============================================================================
|
|
|
|
//=============================================================================
|
|
|
|
SF_Plugins.SF_StateSuperpose.GameBattler_addState = Game_Battler.prototype.addState;
|
|
|
|
SF_Plugins.SF_StateSuperpose.GameBattler_addState = Game_Battler.prototype.addState;
|
|
|
|
Game_Battler.prototype.addState = function (stateId) {
|
|
|
|
Game_Battler.prototype.addState = function (stateId) {
|
|
|
|
SF_Plugins.SF_StateOverride.GameBattler_addState.call(this, stateId);
|
|
|
|
SF_Plugins.SF_StateSuperpose.GameBattler_addState.call(this, stateId);
|
|
|
|
|
|
|
|
|
|
|
|
var stateSuperpose_ID = $dataStates[stateId].SF_StateSuperpose_ID;
|
|
|
|
var stateSuperpose_ID = $dataStates[stateId].SF_StateSuperpose_ID;
|
|
|
|
if (this.result().isStateAdded(stateId) && stateSuperpose_ID !== undefined) {
|
|
|
|
if (this.result().isStateAdded(stateId) && stateSuperpose_ID !== undefined) {
|
|
|
|
var turns = this._stateTurns[stateId];
|
|
|
|
var turns = this._stateTurns[stateId];
|
|
|
|
this.states().forEach(function (state) {
|
|
|
|
this.states().forEach(function (state) {
|
|
|
|
if (state.SF_StateSuperpose_ID === stateSuperpose_ID) {
|
|
|
|
if (state.SF_StateSuperpose_ID === stateSuperpose_ID) {
|
|
|
|
this.addState(state.id);
|
|
|
|
SF_Plugins.SF_StateSuperpose.GameBattler_addState.call(this, stateId);
|
|
|
|
this._stateTurns[state.id] = turns;
|
|
|
|
this._stateTurns[state.id] = turns;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, this);
|
|
|
|
}, this);
|
|
|
|