Browse Source

guards no longer attack guards

master
FatBoy-DOTC 1 year ago
parent
commit
62cc334c66
  1. 2
      src/engine/ai/MobileFSM.java

2
src/engine/ai/MobileFSM.java

@ -628,7 +628,7 @@ public class MobileFSM { @@ -628,7 +628,7 @@ public class MobileFSM {
HashSet<AbstractWorldObject> awoList = WorldGrid.getObjectsInRangePartial(mob, 100, MBServerStatics.MASK_MOB);
for (AbstractWorldObject awoMob : awoList) {
//dont scan self.
if (mob.equals(awoMob))
if (mob.equals(awoMob) || mob.isGuard() == true)
continue;
Mob aggroMob = (Mob) awoMob;
//dont attack other guards

Loading…
Cancel
Save