Browse Source

mob aggro

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
114ccfee9d
  1. 5
      src/engine/mobileAI/MobAI.java

5
src/engine/mobileAI/MobAI.java

@ -243,7 +243,12 @@ public class MobAI { @@ -243,7 +243,12 @@ public class MobAI {
target.setCombatTarget(mob);
}
}
if(target.isAlive())
target.setCombatTarget(mob);
if(target.isPet() && target.isAlive() == false && target.guardCaptain.isAlive() == true){
mob.setCombatTarget(target.guardCaptain);
}
} catch (Exception e) {
Logger.info(mob.getObjectUUID() + " " + mob.getName() + " Failed At: AttackMob" + " " + e.getMessage());
}

Loading…
Cancel
Save