Revert "Fix GetTargetIcons calls (thanks xuanfeng66)"

This reverts commit 4abe553f27.
This commit is contained in:
郑佩茹
2023-03-28 13:00:57 -06:00
parent 4abe553f27
commit 47b13bf73a
6 changed files with 8 additions and 8 deletions

View File

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