[fix] Remove a class that is defined twice.

This commit is contained in:
yang
2024-07-06 17:20:55 +08:00
parent 205dcef71b
commit 3b4492ce44

View File

@@ -6,32 +6,6 @@
#include "PlayerbotAIConfig.h" #include "PlayerbotAIConfig.h"
#include "Playerbots.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 class FindMaxThreatGapTargetStrategy : public FindTargetStrategy
{ {
public: public: