Browse Source

random animation for weapon powers

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

5
src/engine/gameManager/CombatManager.java

@ -481,6 +481,11 @@ public enum CombatManager {
if (token == 563721004) //kick animation if (token == 563721004) //kick animation
return 79; return 79;
if(mainHand && wb != null){
return wb.weapon_attack_anim_right.get(ThreadLocalRandom.current().nextInt(wb.weapon_attack_anim_right.size()))[0];
} else{
return wb.weapon_attack_anim_left.get(ThreadLocalRandom.current().nextInt(wb.weapon_attack_anim_left.size()))[0];
}
} }
if (wb == null) if (wb == null)

Loading…
Cancel
Save