mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
tank target fix
This commit is contained in:
parent
9a2d26a618
commit
3876ff1836
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user