|
|
@ -175,6 +175,8 @@ public class MobAI { |
|
|
|
public static void attackMob(Mob mob, Mob target) { |
|
|
|
public static void attackMob(Mob mob, Mob target) { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
if(mob == null || target == null) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if (mob.getRange() >= 30 && mob.isMoving()) |
|
|
|
if (mob.getRange() >= 30 && mob.isMoving()) |
|
|
|
return; |
|
|
|
return; |
|
|
|