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
f0d1640865
commit
5903e0e5ab
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user