mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
[Attack target] Skull mark icon index fix
This commit is contained in:
@@ -35,7 +35,7 @@ GuidVector AttackersValue::Calculate()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Group* group = bot->GetGroup()) {
|
if (Group* group = bot->GetGroup()) {
|
||||||
ObjectGuid skullGuid = group->GetTargetIcon(4);
|
ObjectGuid skullGuid = group->GetTargetIcon(7);
|
||||||
Unit* skullTarget = botAI->GetUnit(skullGuid);
|
Unit* skullTarget = botAI->GetUnit(skullGuid);
|
||||||
if (skullTarget && IsValidTarget(skullTarget, bot)) {
|
if (skullTarget && IsValidTarget(skullTarget, bot)) {
|
||||||
targets.insert(skullTarget);
|
targets.insert(skullTarget);
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ bool FindTargetStrategy::IsHighPriority(Unit* attacker)
|
|||||||
{
|
{
|
||||||
if (Group* group = botAI->GetBot()->GetGroup())
|
if (Group* group = botAI->GetBot()->GetGroup())
|
||||||
{
|
{
|
||||||
ObjectGuid guid = group->GetTargetIcon(4);
|
ObjectGuid guid = group->GetTargetIcon(7);
|
||||||
if (guid && attacker->GetGUID() == guid) {
|
if (guid && attacker->GetGUID() == guid) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user