From d0d1171e067997402dc266544ef473011ee68669 Mon Sep 17 00:00:00 2001 From: kadeshar Date: Sun, 22 Mar 2026 15:22:03 +0100 Subject: [PATCH] Fixed typo (#2230) ## Pull Request Description Fixed typo ## How to Test the Changes - compile test-staging with 20260320-ac-merge ## 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 --- src/Ai/Base/Value/EnemyPlayerValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ai/Base/Value/EnemyPlayerValue.cpp b/src/Ai/Base/Value/EnemyPlayerValue.cpp index 41206a4eb..3732e83cb 100644 --- a/src/Ai/Base/Value/EnemyPlayerValue.cpp +++ b/src/Ai/Base/Value/EnemyPlayerValue.cpp @@ -62,7 +62,7 @@ Unit* EnemyPlayerValue::Calculate() !bot->IsWithinDist(pTarget, VISIBILITY_DISTANCE_NORMAL)) continue; - if ((bot->GetTeamId() == TEAM_HORDE && Target->HasAura(23333)) || + if ((bot->GetTeamId() == TEAM_HORDE && pTarget->HasAura(23333)) || (bot->GetTeamId() == TEAM_ALLIANCE && pTarget->HasAura(23335))) return pTarget;