mirror of
https://git.vectorsigma.ru/public/mod-playerbots.git
synced 2026-08-04 01:49:10 +00:00
performance optimize
This commit is contained in:
@@ -18,7 +18,9 @@ class FindLeastHpTargetStrategy : public FindTargetStrategy
|
||||
if (guid && attacker->GetGUID() == guid)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!attacker->IsAlive()) {
|
||||
return;
|
||||
}
|
||||
if (!result || result->GetHealth() > attacker->GetHealth())
|
||||
result = attacker;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user