white-thirst/www/js/plugins/FixGuardMotion.js
2024-11-28 12:18:46 -06:00

16 lines
405 B
JavaScript

(function () {
var _Sprite_Actor_refreshMotion = Sprite_Actor.prototype.refreshMotion;
Sprite_Actor.prototype.refreshMotion = function () {
var actor = this._actor,
motionGuard = Sprite_Actor.MOTIONS["guard"];
if (actor) {
if (this._motion === motionGuard && !BattleManager.isInputting()) {
return;
}
_Sprite_Actor_refreshMotion.call(this);
}
};
})();