From 8e93e82526d96bd191571b6000ab2117f40dc963 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 21 Apr 2024 11:50:04 -0500 Subject: [PATCH] random animation for weapon powers --- src/engine/gameManager/CombatManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index 4fe19694..7a89ef59 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -481,6 +481,11 @@ public enum CombatManager { if (token == 563721004) //kick animation 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)