mob ai work
This commit is contained in:
@@ -147,10 +147,12 @@ public class MobAi2 {
|
|||||||
|
|
||||||
if (!CombatUtilities.inRangeToAttack(mob, target)) {
|
if (!CombatUtilities.inRangeToAttack(mob, target)) {
|
||||||
if(mob.nextChaseUpdate < System.currentTimeMillis()) {
|
if(mob.nextChaseUpdate < System.currentTimeMillis()) {
|
||||||
mob.nextChaseUpdate = System.currentTimeMillis() + 1500L;
|
mob.nextChaseUpdate = System.currentTimeMillis() + 5000L;
|
||||||
MovementUtilities.aiMove(mob, target.loc, false);
|
MovementUtilities.aiMove(mob, target.loc, false);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
}else{
|
||||||
|
mob.stopMovement(mob.getMovementLoc());
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (target.getObjectType()) {
|
switch (target.getObjectType()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user