Browse Source

swing animation lookup

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

2
src/engine/gameManager/CombatManager.java

@ -263,7 +263,7 @@ public enum CombatManager {
int passiveAnim = getSwingAnimation(null, null, slot.equals(mbEnums.EquipSlotType.RHELD)); int passiveAnim = getSwingAnimation(null, null, slot.equals(mbEnums.EquipSlotType.RHELD));
if (attacker.charItemManager.getEquipped().get(slot) != null) { if (attacker.charItemManager.getEquipped().get(slot) != null) {
passiveAnim = getSwingAnimation(attacker.charItemManager.getEquipped().get(slot).template, null, true); passiveAnim = getSwingAnimation(weapon.template, null, true);
} }
if (ThreadLocalRandom.current().nextInt(100) > hitChance) { if (ThreadLocalRandom.current().nextInt(100) > hitChance) {

Loading…
Cancel
Save