mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
tank target fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user