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
|
void CheckAttacker(Unit* creature, ThreatMgr* threatMgr) override
|
||||||
{
|
{
|
||||||
|
if (!creature->IsAlive()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
Player* bot = botAI->GetBot();
|
Player* bot = botAI->GetBot();
|
||||||
float threat = threatMgr->GetThreat(bot);
|
float threat = threatMgr->GetThreat(bot);
|
||||||
if (!result) {
|
if (!result) {
|
||||||
|
|||||||
Reference in New Issue
Block a user