mob attack delay
This commit is contained in:
@@ -109,10 +109,6 @@ public class MobAI {
|
|||||||
|
|
||||||
if (mob.getRange() * mob.getRange() >= mob.loc.distanceSquared(target.loc)) {
|
if (mob.getRange() * mob.getRange() >= mob.loc.distanceSquared(target.loc)) {
|
||||||
|
|
||||||
//no weapons, default mob attack speed 3 seconds.
|
|
||||||
|
|
||||||
if (System.currentTimeMillis() < mob.getNextAttackTime())
|
|
||||||
return;
|
|
||||||
|
|
||||||
// ranged mobs cant attack while running. skip until they finally stop.
|
// ranged mobs cant attack while running. skip until they finally stop.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user