[Attack target] Skull mark icon index fix

This commit is contained in:
Yunfan Li
2024-06-24 10:36:01 +08:00
parent 3abce62bba
commit 405c20fdd2
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;
}