From f9f4665e52f6d8dbac947994f151b214c07b59f9 Mon Sep 17 00:00:00 2001
From: FatBoy-DOTC <justin.chucksinsulating@gmail.com>
Date: Mon, 3 Mar 2025 20:58:07 -0600
Subject: [PATCH] simplified mob aI

---
 src/engine/mobileAI/Behaviours/StandardMob.java | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/engine/mobileAI/Behaviours/StandardMob.java b/src/engine/mobileAI/Behaviours/StandardMob.java
index 2aecf5d9..ff71b55f 100644
--- a/src/engine/mobileAI/Behaviours/StandardMob.java
+++ b/src/engine/mobileAI/Behaviours/StandardMob.java
@@ -106,8 +106,8 @@ public class StandardMob {
         if(Mob.discDroppers.contains(mob))
             return;
         float baseRespawnTimer = mob.spawnTime;
-        float reduction = ((100-mob.level) * 0.01f);
-        float reducedRespawnTime = baseRespawnTimer * reduction;
+        float reduction = (100-mob.level) * 0.01f;
+        float reducedRespawnTime = baseRespawnTimer * (1.0f - reduction);
         float respawnTimer = reducedRespawnTime * 1000f;
         if (System.currentTimeMillis() > (mob.deathTime + respawnTimer)) {
             Zone.respawnQue.add(mob);
@@ -219,9 +219,6 @@ public class StandardMob {
         if(mob.getLastAttackTime() > System.currentTimeMillis())
             return;
 
-        mob.updateLocation();
-        InterestManager.forceLoad(mob);
-
         if (mob.BehaviourType.callsForHelp)
             MobCallForHelp(mob);
 
@@ -231,6 +228,10 @@ public class StandardMob {
         if(!CombatUtilities.inRange2D(mob,mob.combatTarget,mob.getRange()))
             return;
 
+        mob.updateLocation();
+        //InterestManager.forceLoad(mob);
+        InterestManager.setObjectDirty(mob);
+
         if (mainHand == null && offHand == null) {
             CombatUtilities.combatCycle(mob, mob.combatTarget, true, null);
             int delay = 3000;