guards use hate value

This commit is contained in:
FatBoy committed 2023-08-08 11:45:42 -05:00
1 parent 49c403bacc
commit 59c976c073
1 file changed
+3
+3
View File
@@ -1058,7 +1058,10 @@ public class MobAI {
try {
if (mob.getCombatTarget() == null)
CheckForPlayerGuardAggro(mob);
AbstractWorldObject newTarget = ChangeTargetFromHateValue(mob);
if (newTarget != null)
mob.setCombatTarget(newTarget);
CheckMobMovement(mob);
CheckForAttack(mob);
} catch (Exception e) {