Merge pull request #305 from yuan227301/fix

[fix] Remove a class that is defined twice.
This commit is contained in:
Yunfan Li
2024-07-07 00:30:37 +08:00
committed by GitHub

View File

@@ -6,32 +6,6 @@
#include "PlayerbotAIConfig.h"
#include "Playerbots.h"
class FindLeastHpTargetStrategy : public FindTargetStrategy
{
public:
FindLeastHpTargetStrategy(PlayerbotAI* botAI) : FindTargetStrategy(botAI), minHealth(0) { }
void CheckAttacker(Unit* attacker, ThreatMgr* threatMgr) override
{
if (!attacker->IsAlive()) {
return;
}
if (foundHighPriority) {
return;
}
if (IsHighPriority(attacker)) {
result = attacker;
foundHighPriority = true;
return;
}
if (!result || result->GetHealth() > attacker->GetHealth())
result = attacker;
}
protected:
float minHealth;
};
class FindMaxThreatGapTargetStrategy : public FindTargetStrategy
{
public: