From 58f250fa645ea02f97740b6606822534caa2ee0b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 21 Apr 2024 21:53:41 -0500 Subject: [PATCH] mob casting temporarily disabled --- src/engine/mobileAI/MobAI.java | 52 +++++++++++++++++----------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index 5af03add..6417eb63 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -316,44 +316,44 @@ public class MobAI { } public static boolean canCast(Mob mob) { - - try { + return false; + //try { // Performs validation to determine if a // mobile in the proper state to cast. - if (mob == null) - return false; + //if (mob == null) + // return false; - if(mob.isPlayerGuard == true){ + //if(mob.isPlayerGuard == true){ - int contractID; + /// int contractID; - if (mob.behaviourType.equals(Enum.MobBehaviourType.GuardMinion)) - contractID = mob.guardCaptain.contract.getContractID(); - else - contractID = mob.contract.getContractID(); + // if (mob.behaviourType.equals(Enum.MobBehaviourType.GuardMinion)) + // contractID = mob.guardCaptain.contract.getContractID(); + // else + // contractID = mob.contract.getContractID(); - if(Enum.MinionType.ContractToMinionMap.get(contractID).isMage() == false) - return false; - } + // if(Enum.MinionType.ContractToMinionMap.get(contractID).isMage() == false) + // return false; + //} - if (mob.mobPowers.isEmpty()) - return false; + //if (mob.mobPowers.isEmpty()) + // return false; - if (!mob.canSee((PlayerCharacter) mob.getCombatTarget())) { - mob.setCombatTarget(null); - return false; - } - if (mob.nextCastTime == 0) - mob.nextCastTime = System.currentTimeMillis(); + //if (!mob.canSee((PlayerCharacter) mob.getCombatTarget())) { + // mob.setCombatTarget(null); + // return false; + // } + // if (mob.nextCastTime == 0) + // mob.nextCastTime = System.currentTimeMillis(); - return mob.nextCastTime >= System.currentTimeMillis(); + // return mob.nextCastTime >= System.currentTimeMillis(); - } catch (Exception e) { - Logger.info(mob.getObjectUUID() + " " + mob.getName() + " Failed At: canCast" + " " + e.getMessage()); - } - return false; + //} catch (Exception e) { + // Logger.info(mob.getObjectUUID() + " " + mob.getName() + " Failed At: canCast" + " " + e.getMessage()); + //} + //return false; } public static boolean MobCast(Mob mob) {