Browse Source

mob attack delay

combat-2
FatBoy-DOTC 8 months ago
parent
commit
162a049f30
  1. 4
      src/engine/mobileAI/MobAI.java

4
src/engine/mobileAI/MobAI.java

@ -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.

Loading…
Cancel
Save