|
|
|
@ -20,13 +20,17 @@ public class StandardMob {
@@ -20,13 +20,17 @@ public class StandardMob {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
HashSet<AbstractWorldObject> inRange = WorldGrid.getObjectsInRangePartial(mob.loc, MBServerStatics.CHARACTER_LOAD_RANGE, MBServerStatics.MASK_PLAYER); |
|
|
|
|
|
|
|
|
|
if(inRange.isEmpty()) |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
if (mob.isMoving()) { |
|
|
|
|
mob.setLoc(mob.getMovementLoc()); |
|
|
|
|
mob.updateLocation(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(mob.combatTarget == null) { |
|
|
|
|
HashSet<AbstractWorldObject> inRange = WorldGrid.getObjectsInRangePartial(mob.loc, MBServerStatics.CHARACTER_LOAD_RANGE, MBServerStatics.MASK_PLAYER); |
|
|
|
|
if (!inRange.isEmpty()) { |
|
|
|
|
CheckForAggro(mob); |
|
|
|
|
return; |
|
|
|
@ -34,7 +38,6 @@ public class StandardMob {
@@ -34,7 +38,6 @@ public class StandardMob {
|
|
|
|
|
}else{ |
|
|
|
|
CheckToDropCombatTarget(mob); |
|
|
|
|
if(mob.combatTarget == null){ |
|
|
|
|
HashSet<AbstractWorldObject> inRange = WorldGrid.getObjectsInRangePartial(mob.loc, MBServerStatics.CHARACTER_LOAD_RANGE, MBServerStatics.MASK_PLAYER); |
|
|
|
|
CheckForAggro(mob); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|