mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-15 09:50:27 +00:00
PvP: ignore Spirit of Redemption and pets
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user