tank target fix

This commit is contained in:
Yunfan Li
2023-10-03 21:11:46 +08:00
parent 9a2d26a618
commit 3876ff1836

View File

@@ -13,6 +13,9 @@ class FindTargetForTankStrategy : public FindNonCcTargetStrategy
void CheckAttacker(Unit* creature, ThreatMgr* threatMgr) override
{
if (!creature->IsAlive()) {
return;
}
Player* bot = botAI->GetBot();
float threat = threatMgr->GetThreat(bot);
if (!result) {