From 441771839a85af87c9fddd90af0324f7e0883ab7 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 20 Jan 2025 20:02:47 -0600 Subject: [PATCH] new stat calculations --- src/engine/gameManager/PowersManager.java | 4 +++- src/engine/mobileAI/MobAI.java | 1 - src/engine/objects/Mob.java | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index 0e4a9e7a..f3e50d93 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -10,6 +10,7 @@ package engine.gameManager; import engine.Enum.*; import engine.InterestManagement.HeightMap; +import engine.InterestManagement.InterestManager; import engine.InterestManagement.WorldGrid; import engine.db.handlers.dbEffectsBaseHandler; import engine.db.handlers.dbPowerHandler; @@ -197,7 +198,8 @@ public enum PowersManager { msg.setUnknown04(1); if (useMobPowerA(msg, caster)) { - //sendMobPowerMsg(caster,2,msg); //Lol wtf was i thinking sending msg's to mobs... ZZZZ + if(pb.token == -1994153779) + InterestManager.setObjectDirty(caster); } } diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index 452e1809..a123f6b7 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -964,7 +964,6 @@ public class MobAI { PowersBase recall = PowersManager.getPowerByToken(-1994153779); PowersManager.useMobPower(mob, mob, recall, 40); mob.setCombatTarget(null); - if (mob.BehaviourType.ordinal() == Enum.MobBehaviourType.GuardCaptain.ordinal() && mob.isAlive()) { //guard captain pulls his minions home with him diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index fc359097..3cdba279 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1444,6 +1444,7 @@ public class Mob extends AbstractIntelligenceAgent { this.updateLocation(); this.stopPatrolTime = 0; this.lastPatrolPointIndex = 0; + InterestManager.setObjectDirty(this); } public void despawn() {