Browse Source

hamlet guard aggro fix

master
FatBoy-DOTC 2 years ago
parent
commit
4e5c77ec47
  1. 6
      src/engine/ai/MobileFSM.java

6
src/engine/ai/MobileFSM.java

@ -583,10 +583,14 @@ public class MobileFSM {
if (mob.getCombatTarget() == null) { if (mob.getCombatTarget() == null) {
//safehold guard //safehold guard
SafeGuardAggro(mob); SafeGuardAggro(mob);
} else{
if(mob.combatTarget.isAlive() == false){
SafeGuardAggro(mob);
}
}
if (mob.getCombatTarget() != null) if (mob.getCombatTarget() != null)
CheckForAttack(mob); CheckForAttack(mob);
} }
}
private static void DefaultLogic(Mob mob) { private static void DefaultLogic(Mob mob) {
if(mob.getObjectUUID() == 40548){ if(mob.getObjectUUID() == 40548){
int thing = 0; int thing = 0;

Loading…
Cancel
Save