Browse Source

mobs dont double tap when unarmed

combat-2
FatBoy-DOTC 7 months ago
parent
commit
3f27bae099
  1. 1
      src/engine/gameManager/CombatManager.java

1
src/engine/gameManager/CombatManager.java

@ -62,6 +62,7 @@ public enum CombatManager { @@ -62,6 +62,7 @@ public enum CombatManager {
if (mainWeapon == null && offWeapon == null) {
//no weapons equipped, punch with both fists
processAttack(attacker, target, mbEnums.EquipSlotType.RHELD);
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

Loading…
Cancel
Save