mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
[Attack target] Skull mark icon index fix
This commit is contained in:
parent
3abce62bba
commit
405c20fdd2
@ -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);
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user