From 3b4492ce44559711c7e6577cae0839f2eb6f5de1 Mon Sep 17 00:00:00 2001 From: yang <2101461382@qq.com> Date: Sat, 6 Jul 2024 17:20:55 +0800 Subject: [PATCH] [fix] Remove a class that is defined twice. --- src/strategy/values/DpsTargetValue.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/strategy/values/DpsTargetValue.cpp b/src/strategy/values/DpsTargetValue.cpp index 05f6199b..6e6415d6 100644 --- a/src/strategy/values/DpsTargetValue.cpp +++ b/src/strategy/values/DpsTargetValue.cpp @@ -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: