Lore Guard AI Aggro

This commit is contained in:
2024-05-14 18:49:30 -05:00
parent 93c4103f61
commit 4f01da368c
+3 -2
View File
@@ -949,14 +949,15 @@ public class MobAI {
try { try {
if (ConfigManager.MB_RULESET.getValue().equals("LORE")) { if (ConfigManager.MB_RULESET.getValue().equals("LORE")) {
if (mob.getCombatTarget() == null) //lore guard aggro to kill members of opposing charters
if (mob.getCombatTarget() == null || !mob.combatTarget.isAlive())
hamletGuardAggro(mob); hamletGuardAggro(mob);
else if (!mob.getCombatTarget().isAlive()) else if (!mob.getCombatTarget().isAlive())
hamletGuardAggro(mob); hamletGuardAggro(mob);
} else { } else {
//safehold guard //safehold guard
if (mob.getCombatTarget() == null) if (mob.getCombatTarget() == null || !mob.combatTarget.isAlive())
safeGuardAggro(mob); safeGuardAggro(mob);
else if (!mob.getCombatTarget().isAlive()) else if (!mob.getCombatTarget().isAlive())
safeGuardAggro(mob); safeGuardAggro(mob);