mob aggro raneg when swapping hated target
This commit is contained in:
1 parent
b42a378ca8
commit
ea919b4ecf
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user