mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Revert "Fix GetTargetIcons calls (thanks xuanfeng66)"
This reverts commit 4abe553f27.
This commit is contained in:
@@ -14,7 +14,7 @@ class FindLeastHpTargetStrategy : public FindTargetStrategy
|
||||
{
|
||||
if (Group* group = botAI->GetBot()->GetGroup())
|
||||
{
|
||||
ObjectGuid guid = group->GetTargetIcons()[4];
|
||||
ObjectGuid guid = group->GetTargetIcon(4);
|
||||
if (guid && attacker->GetGUID() == guid)
|
||||
return;
|
||||
}
|
||||
@@ -46,7 +46,7 @@ class FindMaxHpTargetStrategy : public FindTargetStrategy
|
||||
{
|
||||
if (Group* group = botAI->GetBot()->GetGroup())
|
||||
{
|
||||
ObjectGuid guid = group->GetTargetIcons()[4];
|
||||
ObjectGuid guid = group->GetTargetIcon(4);
|
||||
if (guid && attacker->GetGUID() == guid)
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user