From 3f27bae09958a23be6e1a5f0627dfe4fe103e1af Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 13 Apr 2024 19:12:09 -0500 Subject: [PATCH] mobs dont double tap when unarmed --- src/engine/gameManager/CombatManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index 0a61159c..9b5561e1 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -62,7 +62,8 @@ public enum CombatManager { if (mainWeapon == null && offWeapon == null) { //no weapons equipped, punch with both fists processAttack(attacker, target, mbEnums.EquipSlotType.RHELD); - processAttack(attacker, target, mbEnums.EquipSlotType.LHELD); + if(attacker.getObjectType().equals(mbEnums.GameObjectType.PlayerCharacter)) + processAttack(attacker, target, mbEnums.EquipSlotType.LHELD); } else if (mainWeapon == null && offWeapon != null && offWeapon.template.item_skill_required.containsKey("Block")) { //no weapon equipped with a shield, punch with one hand processAttack(attacker, target, mbEnums.EquipSlotType.RHELD);