From 405c20fdd2ef46bb1a938b910884c50eaa48d746 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Mon, 24 Jun 2024 10:36:01 +0800 Subject: [PATCH] [Attack target] Skull mark icon index fix --- src/strategy/values/AttackersValue.cpp | 2 +- src/strategy/values/TargetValue.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strategy/values/AttackersValue.cpp b/src/strategy/values/AttackersValue.cpp index fcfd1d9a..41ff417e 100644 --- a/src/strategy/values/AttackersValue.cpp +++ b/src/strategy/values/AttackersValue.cpp @@ -35,7 +35,7 @@ GuidVector AttackersValue::Calculate() } } if (Group* group = bot->GetGroup()) { - ObjectGuid skullGuid = group->GetTargetIcon(4); + ObjectGuid skullGuid = group->GetTargetIcon(7); Unit* skullTarget = botAI->GetUnit(skullGuid); if (skullTarget && IsValidTarget(skullTarget, bot)) { targets.insert(skullTarget); diff --git a/src/strategy/values/TargetValue.cpp b/src/strategy/values/TargetValue.cpp index ad709394..7c515a8a 100644 --- a/src/strategy/values/TargetValue.cpp +++ b/src/strategy/values/TargetValue.cpp @@ -104,7 +104,7 @@ bool FindTargetStrategy::IsHighPriority(Unit* attacker) { if (Group* group = botAI->GetBot()->GetGroup()) { - ObjectGuid guid = group->GetTargetIcon(4); + ObjectGuid guid = group->GetTargetIcon(7); if (guid && attacker->GetGUID() == guid) { return true; }