Browse Source

hamlet guard aggro fix

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

8
src/engine/ai/MobileFSM.java

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

Loading…
Cancel
Save