random animation for weapon powers

This commit is contained in:
2024-04-21 11:52:47 -05:00
parent 8e93e82526
commit a84c712110
+6 -4
View File
@@ -481,10 +481,12 @@ public enum CombatManager {
if (token == 563721004) //kick animation if (token == 563721004) //kick animation
return 79; return 79;
if(mainHand && wb != null){ if(wb != null) {
return wb.weapon_attack_anim_right.get(ThreadLocalRandom.current().nextInt(wb.weapon_attack_anim_right.size()))[0]; if (mainHand) {
} else{ return wb.weapon_attack_anim_right.get(ThreadLocalRandom.current().nextInt(wb.weapon_attack_anim_right.size()))[0];
return wb.weapon_attack_anim_left.get(ThreadLocalRandom.current().nextInt(wb.weapon_attack_anim_left.size()))[0]; } else {
return wb.weapon_attack_anim_left.get(ThreadLocalRandom.current().nextInt(wb.weapon_attack_anim_left.size()))[0];
}
} }
} }