From 3876ff183600b7a4e7e7686adb4c6a2f0ad43e3a Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Tue, 3 Oct 2023 21:11:46 +0800 Subject: [PATCH] tank target fix --- src/strategy/values/TankTargetValue.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/strategy/values/TankTargetValue.cpp b/src/strategy/values/TankTargetValue.cpp index 9eede72d..573d2977 100644 --- a/src/strategy/values/TankTargetValue.cpp +++ b/src/strategy/values/TankTargetValue.cpp @@ -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) {