mobs dont double tap when unarmed
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user