From d221daa86455633f91e7298846be5d5042d9cf4c Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 5 Aug 2023 23:38:24 -0500 Subject: [PATCH] guard power work --- src/engine/mobileAI/MobAI.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index 090bcbb0..dea54c94 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -479,16 +479,8 @@ public class MobAI { if (powerTokens.isEmpty()) return false; - int powerToken = 0; - // Pick random spell from our list of powers - if(ThreadLocalRandom.current().nextInt(1,100) < 65){ - //65% direct damage chance - powerToken = powerTokens.get(0); - } else { - //pull non DD spell - powerToken = powerTokens.get(ThreadLocalRandom.current().nextInt(1,powerTokens.size())); - } + int powerToken = powerTokens.get(ThreadLocalRandom.current().nextInt(powerTokens.size())); int powerRank = mob.mobPowers.get(powerToken); PowersBase mobPower = PowersManager.getPowerByToken(powerToken);