Hey folks!
I'm using Yanfly's Instant Cast plugin, but it clashes with something else I'm working on. Basically my script uses isInputting() to find the current actor inputting in battle. But the Instant Cast plugin sets isInputting to false after the first Instant Cast.
Think this is the bit in Yanfly's plugin that does it.
Yanfly.Instant.BattleManager_isInputting = BattleManager.isInputting;
BattleManager.isInputting = function() {
if (this._instantCasting) return false;
return Yanfly.Instant.BattleManager_isInputting.call(this);
};
And I'm trying to use it here
//checks if player is inputting in the Skill Window
Sprite_RingSkillMenuBattle.prototype.updateVisibility = function() {
var isBattleSkillActive = SceneManager._scene._skillWindow;
this.visible = this._actor && this._actor.isInputting() && isBattleSkillActive && isBattleSkillActive.active;
};
Any ideas on a work around? Thank you! x
I'm using Yanfly's Instant Cast plugin, but it clashes with something else I'm working on. Basically my script uses isInputting() to find the current actor inputting in battle. But the Instant Cast plugin sets isInputting to false after the first Instant Cast.
Think this is the bit in Yanfly's plugin that does it.
Yanfly.Instant.BattleManager_isInputting = BattleManager.isInputting;
BattleManager.isInputting = function() {
if (this._instantCasting) return false;
return Yanfly.Instant.BattleManager_isInputting.call(this);
};
And I'm trying to use it here
//checks if player is inputting in the Skill Window
Sprite_RingSkillMenuBattle.prototype.updateVisibility = function() {
var isBattleSkillActive = SceneManager._scene._skillWindow;
this.visible = this._actor && this._actor.isInputting() && isBattleSkillActive && isBattleSkillActive.active;
};
Any ideas on a work around? Thank you! x