From 2f4579db5fe8038bfdd6b254c7e41c06e00296ed Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sat, 6 Jan 2024 20:16:03 +0800 Subject: [PATCH] Remove polymorphed target from attackers --- src/strategy/values/AttackersValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/values/AttackersValue.cpp b/src/strategy/values/AttackersValue.cpp index e3748c1c..d6442363 100644 --- a/src/strategy/values/AttackersValue.cpp +++ b/src/strategy/values/AttackersValue.cpp @@ -112,7 +112,7 @@ bool AttackersValue::hasRealThreat(Unit *attacker) return attacker && attacker->IsInWorld() && attacker->IsAlive() && - // !attacker->IsPolymorphed() && + !attacker->IsPolymorphed() && // !attacker->isInRoots() && !attacker->IsFriendlyTo(bot) && (attacker->GetThreatMgr().getCurrentVictim() || dynamic_cast(attacker));