mob aggro raneg when swapping hated target
This commit is contained in:
@@ -727,7 +727,7 @@ public class MobileFSM {
|
|||||||
if(potentialTarget.equals(mob.getCombatTarget())){
|
if(potentialTarget.equals(mob.getCombatTarget())){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(potentialTarget != null && potentialTarget.getHateValue() > CurrentHateValue){
|
if(potentialTarget != null && potentialTarget.getHateValue() > CurrentHateValue && MovementUtilities.inRangeToAggro(mob, potentialTarget)){
|
||||||
CurrentHateValue = potentialTarget.getHateValue();
|
CurrentHateValue = potentialTarget.getHateValue();
|
||||||
mostHatedTarget = potentialTarget;
|
mostHatedTarget = potentialTarget;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user