|
|
@ -1030,7 +1030,10 @@ public class MobAI { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void GuardCaptainLogic(Mob mob) { |
|
|
|
public static void GuardCaptainLogic(Mob mob) { |
|
|
|
|
|
|
|
if(mob.guardedCity.getBane() == null){ |
|
|
|
|
|
|
|
CheckMobMovement(mob); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (mob.getCombatTarget() == null) |
|
|
|
if (mob.getCombatTarget() == null) |
|
|
|
CheckForPlayerGuardAggro(mob); |
|
|
|
CheckForPlayerGuardAggro(mob); |
|
|
@ -1054,7 +1057,10 @@ public class MobAI { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void GuardMinionLogic(Mob mob) { |
|
|
|
public static void GuardMinionLogic(Mob mob) { |
|
|
|
|
|
|
|
if(mob.guardedCity.getBane() == null){ |
|
|
|
|
|
|
|
CheckMobMovement(mob); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
boolean isComanded = mob.npcOwner.isAlive(); |
|
|
|
boolean isComanded = mob.npcOwner.isAlive(); |
|
|
|
if (!isComanded) { |
|
|
|
if (!isComanded) { |
|
|
|