update lastChase timestamp for mobs

This commit is contained in:
2023-10-16 14:37:17 -05:00
parent d506807a8f
commit cb89cc17be
+2
View File
@@ -901,6 +901,8 @@ public class MobAI {
else if(System.currentTimeMillis() < mob.getTimestamps().get("lastChase").longValue() + 1000)
return;
mob.getTimestamps().put("lastChase",System.currentTimeMillis());
if (CombatUtilities.inRange2D(mob, mob.getCombatTarget(), mob.getRange()) == false) {
if (mob.getRange() > 15) {
mob.destination = mob.getCombatTarget().getLoc();