Browse Source

mob aggro

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

7
src/engine/mobileAI/MobAI.java

@ -243,7 +243,12 @@ public class MobAI { @@ -243,7 +243,12 @@ public class MobAI {
target.setCombatTarget(mob);
}
}
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