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