Browse Source

mob aggro raneg when swapping hated target

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

2
src/engine/ai/MobileFSM.java

@ -727,7 +727,7 @@ public class MobileFSM { @@ -727,7 +727,7 @@ public class MobileFSM {
if(potentialTarget.equals(mob.getCombatTarget())){
continue;
}
if(potentialTarget != null && potentialTarget.getHateValue() > CurrentHateValue){
if(potentialTarget != null && potentialTarget.getHateValue() > CurrentHateValue && MovementUtilities.inRangeToAggro(mob, potentialTarget)){
CurrentHateValue = potentialTarget.getHateValue();
mostHatedTarget = potentialTarget;
}

Loading…
Cancel
Save