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,7 +13,7 @@ class FindTargetForTankStrategy : public FindNonCcTargetStrategy
|
|||||||
|
|
||||||
void CheckAttacker(Unit* creature, ThreatMgr* threatMgr) override
|
void CheckAttacker(Unit* creature, ThreatMgr* threatMgr) override
|
||||||
{
|
{
|
||||||
if (!creature->IsAlive()) {
|
if (!creature || !creature->IsAlive()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Player* bot = botAI->GetBot();
|
Player* bot = botAI->GetBot();
|
||||||
|
|||||||
Reference in New Issue
Block a user