- Joined
- Oct 16, 2014
- Messages
- 76
- Reaction score
- 4
Game_Player.prototype.meleeAttackEnd = function() { if ($gamePlayer.pattern() === 4) { this.playerReset(); };};Game_Player.prototype.meleeAttackStart = function() { this.actionInProgress(true); $gamePlayer.setWalkAnime(false); playerBlockX = 12; playerMaxPattern = 5; $gamePlayer.resetPattern(); $gamePlayer.setStepAnime(true); this.meleeAttackEnd(); };
Code:
Game_Player.prototype.updateCombat = function() { // Unarmed if (this.checkEquipmentSlot(0).wtypeId === null) { // Melee One Hand } else if (this.checkEquipmentSlot(0).wtypeId <= 30) { if (this._actionInProgress === false) { if (TouchInput.isTriggered()) { this.meleeAttackStart(); }; } else { this.meleeAttackEnd(); }; // Bow } else if (this.checkEquipmentSlot(0).wtypeId >= 60) {
Last edited by a moderator:
