Hello! I just found a problem that probably requires changing some code but due to my poor knowledge of javascript I'm going to need some help:
When, in battle, I want to transform an enemy into another, this error shows up.
Judging from what the console says, I have guessed the error is in this code inside the Yanfly AnimatedSVEnemies plugin:
More precisely this line:
But I don't know what I should put there to fix it. Can anyone help me?
Note: My yanfly plugins are placed in order in my plugin manager:
When, in battle, I want to transform an enemy into another, this error shows up.
Judging from what the console says, I have guessed the error is in this code inside the Yanfly AnimatedSVEnemies plugin:
Code:
Sprite_Enemy.prototype.setTransform = function(battler) {
this._shadowSprite.opacity = 0;
this._weaponSprite.opacity = 0;
this._mainSprite.opacity = 0;
this._stateSprite.opacity = 0;
if (battler.svBattlerName()) {
this.createShadowSprite();
this.createWeaponSprite();
this.createMainSprite();
this.createStateSprite();
this._shadowSprite.opacity = 255;
this._weaponSprite.opacity = 255;
this._mainSprite.opacity = 255;
this._stateSprite.opacity = 255;
}
};
More precisely this line:
Code:
this._stateSprite.opacity = 0;
Note: My yanfly plugins are placed in order in my plugin manager: