Browse Source

mob ai work

lakebane-mobai2
FatBoy-DOTC 1 week ago
parent
commit
277bb14bab
  1. 2
      src/engine/mobileAI/MobAi2.java

2
src/engine/mobileAI/MobAi2.java

@ -160,7 +160,7 @@ public class MobAi2 { @@ -160,7 +160,7 @@ public class MobAi2 {
if(!mob.isCombat())
mob.setCombat(true);
if (!CombatUtilities.inRangeToAttack(mob, target)) {
if (!CombatUtilities.inRangeToAttack(mob, target) && mob.BehaviourType.canRoam) {
if(mob.nextChaseUpdate < System.currentTimeMillis()) {
mob.nextChaseUpdate = System.currentTimeMillis() + 2500L;
MovementUtilities.aiMove(mob, target.loc, false);

Loading…
Cancel
Save