tank target fix

This commit is contained in:
Yunfan Li
2023-10-04 19:13:02 +08:00
parent f0d1640865
commit 5903e0e5ab

View File

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