From 45aa6f2f8e1cbe3aabda663765cdd7bc50b24842 Mon Sep 17 00:00:00 2001 From: FutterSillo <98534244+FutterSillo@users.noreply.github.com> Date: Fri, 27 Mar 2026 18:38:54 +0100 Subject: [PATCH] Update valid targets for Hunter Talent: "Improved Tracking" (#2218) ## Pull Request Description Updates the list of valid targets in NoTrackTrigger::IsActive() for the hunter talent "Improved Tracking". Including: "track beasts", "track demons", "track dragonkin", "track elementals", "track giants", "track humanoids", "track undead", // "track hidden", // "find herbs", // "find minerals", // "find fish", // "find treasure", This change ensures standard combat tracking is correctly recognized while providing commented-out utility options (Hidden, Herbs, Minerals, Fish, Treasure). This is specifically useful for "Selfbot" users who want to maintain a specific utility tracking without the bot logic automatically overriding it and switching back to "Track Humanoids". ## Feature Evaluation - Describe the **minimum logic** required to achieve the intended behavior. - Describe the **processing cost** when this logic executes across many bots. ## How to Test the Changes - Track valid Targets for "Improved Tracking" with a Hunter in selfbot. Its stay the same. - Track any other Targets for "Improved Tracking" with a Hunter in selfbot. Its switch back to "Track Humanoids". ## Impact Assessment - Does this change increase per-bot/per-tick processing or risk scaling poorly with thousands of bots? - [x] No, not at all - [ ] Minimal impact (**explain below**) - [ ] Moderate impact (**explain below**) - Does this change modify default bot behavior? - [x] No - [ ] Yes (**explain why**) - Does this change add new decision branches or increase maintenance complexity? - [x] No - [ ] Yes (**explain below**) ## Messages to Translate Does this change add bot messages to translate? - [x] No - [ ] Yes (**list messages in the table**) | Message key | Default message | | --------------- | ------------------ | | | | | | | ## AI Assistance Was AI assistance used while working on this change? - [x] No - [ ] Yes (**explain below**) ## Final Checklist - [x] Stability is not compromised. - [x] Performance impact is understood, tested, and acceptable. - [x] Added logic complexity is justified and explained. - [x] Documentation updated if needed (Conf comments, WiKi commands). ## Notes for Reviewers --------- Co-authored-by: Keleborn <22352763+Celandriel@users.noreply.github.com> Co-authored-by: bash Co-authored-by: Revision Co-authored-by: kadeshar --- src/Ai/Class/Hunter/Trigger/HunterTriggers.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Ai/Class/Hunter/Trigger/HunterTriggers.cpp b/src/Ai/Class/Hunter/Trigger/HunterTriggers.cpp index 84ece04b7..972332d1a 100644 --- a/src/Ai/Class/Hunter/Trigger/HunterTriggers.cpp +++ b/src/Ai/Class/Hunter/Trigger/HunterTriggers.cpp @@ -107,6 +107,8 @@ bool SwitchToMeleeTrigger::IsActive() ServerFacade::instance().IsDistanceLessOrEqualThan(AI_VALUE2(float, "distance", "current target"), 8.0f)); } +// Valid targets for "Improved Tracking". +// Optional/Utility targets (uncomment for selfbot). bool NoTrackTrigger::IsActive() { std::vector track_list = { @@ -115,8 +117,13 @@ bool NoTrackTrigger::IsActive() "track dragonkin", "track elementals", "track giants", - "track hidden", - "track humanoids" + "track humanoids", + "track undead", + // "track hidden", + // "find herbs", + // "find minerals", + // "find fish", + // "find treasure", }; for (auto &track: track_list)