Browse Source

mobs attack pets

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
8890e02981
  1. 2
      src/engine/mobileAI/MobAI.java

2
src/engine/mobileAI/MobAI.java

@ -249,7 +249,7 @@ public class MobAI {
if(target.isPet() && target.isAlive() == false && target.guardCaptain.isAlive() == true){ if(target.isPet() && target.isAlive() == false && target.guardCaptain.isAlive() == true){
mob.setCombatTarget(target.guardCaptain); mob.setCombatTarget(target.guardCaptain);
} }
if(target.level > 75){ if(mob.isPet()){
AttackMob(target,mob); AttackMob(target,mob);
} }
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save