mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-15 01:49:09 +00:00
Revert "Fix GetTargetIcons calls (thanks xuanfeng66)"
This reverts commit 4abe553f27.
This commit is contained in:
@@ -49,14 +49,14 @@ bool FindNonCcTargetStrategy::IsCcTarget(Unit* attacker)
|
||||
int32 index = RtiTargetValue::GetRtiIndex(rti);
|
||||
if (index != -1)
|
||||
{
|
||||
if (ObjectGuid guid = group->GetTargetIcons()[index])
|
||||
if (ObjectGuid guid = group->GetTargetIcon(index))
|
||||
if (attacker->GetGUID() == guid)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ObjectGuid guid = group->GetTargetIcons()[4])
|
||||
if (ObjectGuid guid = group->GetTargetIcon(4))
|
||||
if (attacker->GetGUID() == guid)
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user