Merge branch 'bot-rewrite' of https://github.com/nytmyr/Server into bot-rewrite

This commit is contained in:
nytmyr
2024-12-13 15:38:10 -06:00
+13
View File
@@ -2086,6 +2086,13 @@ void Bot::AI_Process()
}
}
SetFollowID(follow_mob->GetID());
if (!follow_mob || !IsInGroupOrRaid(follow_mob)) {
follow_mob = leash_owner;
}
}
SetFollowID(follow_mob->GetID());
SetBerserkState();
@@ -2126,6 +2133,7 @@ void Bot::AI_Process()
glm::vec3 Goal(0, 0, 0);
// We have aggro to choose from
if (IsEngaged()) {
if (rest_timer.Enabled()) {
@@ -2332,6 +2340,11 @@ void Bot::AI_Process()
}
}
if (!TargetValidation(tar)) { return; }
}
}
// ENGAGED NOT AT COMBAT RANGE
else if (!TryPursueTarget(leash_distance, Goal)) {