Browse Source

mobs use half aggro range top chase targets past go home point

master
FatBoy-DOTC 2 years ago
parent
commit
36eef1942b
  1. 3
      src/engine/ai/MobileFSM.java

3
src/engine/ai/MobileFSM.java

@ -486,7 +486,7 @@ public class MobileFSM {
AttackTarget(mob, mob.getCombatTarget()); AttackTarget(mob, mob.getCombatTarget());
} }
private static void CheckToSendMobHome(Mob mob) { private static void CheckToSendMobHome(Mob mob) {
if(CombatUtilities.inRangeToAttack(mob, mob.getCombatTarget()) == true){ if(CombatUtilities.inRange2D(mob,mob.getCombatTarget(),mob.getRange() * 0.5f)){
return; return;
} }
if (mob.isPlayerGuard() && !mob.despawned) { if (mob.isPlayerGuard() && !mob.despawned) {
@ -505,6 +505,7 @@ public class MobileFSM {
} }
} }
else if(MovementUtilities.inRangeOfBindLocation(mob) == false) { else if(MovementUtilities.inRangeOfBindLocation(mob) == false) {
PowersBase recall = PowersManager.getPowerByToken(-1994153779); PowersBase recall = PowersManager.getPowerByToken(-1994153779);
PowersManager.useMobPower(mob, mob, recall, 40); PowersManager.useMobPower(mob, mob, recall, 40);
mob.setCombatTarget(null); mob.setCombatTarget(null);

Loading…
Cancel
Save