From 0d2ea32dbd33fc1f0f617b7d082b60a2e74194fa Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 6 Aug 2023 17:42:24 -0500 Subject: [PATCH] guards nuke more than they debuff --- src/engine/mobileAI/MobAI.java | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index 2da3065a..56f3637c 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -403,15 +403,6 @@ public class MobAI { if (CombatUtilities.triggerDefense(mob, mob.getCombatTarget())) return false; - - if (CombatUtilities.triggerDodge(mob, mob.getCombatTarget())) - return false; - - if (CombatUtilities.triggerBlock(mob, mob.getCombatTarget())) - return false; - - if (CombatUtilities.triggerParry(mob, mob.getCombatTarget())) - return false; } // Cast the spell @@ -484,12 +475,13 @@ public class MobAI { if (powerTokens.isEmpty()) return false; int powerToken = 0; - if(ThreadLocalRandom.current().nextInt(1,100) < 65){ + int nukeRoll = ThreadLocalRandom.current().nextInt(1,100); + if( nukeRoll < 65){ //use direct damage spell - powerToken = mob.mobPowers.get(3); + powerToken = powerTokens.get(3); } else{ - //use other random spell - powerToken = powerTokens.get(ThreadLocalRandom.current().nextInt(powerTokens.size() - 1)); + //use random spell + powerToken = powerTokens.get(ThreadLocalRandom.current().nextInt(powerTokens.size())); } int powerRank = mob.mobPowers.get(powerToken); PowersBase mobPower = PowersManager.getPowerByToken(powerToken); @@ -500,15 +492,6 @@ public class MobAI { if (CombatUtilities.triggerDefense(mob, mob.getCombatTarget())) return false; - - if (CombatUtilities.triggerDodge(mob, mob.getCombatTarget())) - return false; - - if (CombatUtilities.triggerBlock(mob, mob.getCombatTarget())) - return false; - - if (CombatUtilities.triggerParry(mob, mob.getCombatTarget())) - return false; } // Cast the spell