PvP: ignore Spirit of Redemption and pets

This commit is contained in:
郑佩茹
2022-09-26 11:08:20 -06:00
parent 0a62ee0041
commit bd909ca92a
4 changed files with 10 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ uint8 ThreatValue::Calculate(Unit* target)
if (!group)
return 0;
float botThreat = target->GetThreatMgr().getThreat(bot);
float botThreat = target->GetThreatMgr().GetThreat(bot);
float maxThreat = -1.0f;
bool hasTank = false;
@@ -55,7 +55,7 @@ uint8 ThreatValue::Calculate(Unit* target)
if (botAI->IsTank(player))
{
hasTank = true;
float threat = target->GetThreatMgr().getThreat(player);
float threat = target->GetThreatMgr().GetThreat(player);
if (maxThreat < threat)
maxThreat = threat;
}