forked from MagicBane/Server
Aggro code removed from check to send mob home.
This commit is contained in:
@@ -264,7 +264,7 @@ public class MobAI {
|
|||||||
if (!forced)
|
if (!forced)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//guards inherit barracks patrol points dynamically
|
//guards inherit barracks patrol points dynamically
|
||||||
|
|
||||||
if (mob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN) || mob.agentType.equals(Enum.AIAgentType.GUARDMINION)) {
|
if (mob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN) || mob.agentType.equals(Enum.AIAgentType.GUARDMINION)) {
|
||||||
|
|
||||||
@@ -843,15 +843,6 @@ public class MobAI {
|
|||||||
private static void CheckToSendMobHome(Mob mob) {
|
private static void CheckToSendMobHome(Mob mob) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (mob.behaviourType.isAgressive) {
|
|
||||||
|
|
||||||
if (mob.isPlayerGuard()) {
|
|
||||||
if (mob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN))
|
|
||||||
CheckForPlayerGuardAggro(mob);
|
|
||||||
} else {
|
|
||||||
CheckForAggro(mob);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mob.getCombatTarget() != null && CombatUtilities.inRange2D(mob, mob.getCombatTarget(), MobAIThread.AI_BASE_AGGRO_RANGE * 0.5f))
|
if (mob.getCombatTarget() != null && CombatUtilities.inRange2D(mob, mob.getCombatTarget(), MobAIThread.AI_BASE_AGGRO_RANGE * 0.5f))
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user