Remove polymorphed target from attackers

This commit is contained in:
Yunfan Li
2024-01-06 20:16:03 +08:00
parent 5fbd55dc56
commit 2f4579db5f

View File

@@ -112,7 +112,7 @@ bool AttackersValue::hasRealThreat(Unit *attacker)
return attacker && return attacker &&
attacker->IsInWorld() && attacker->IsInWorld() &&
attacker->IsAlive() && attacker->IsAlive() &&
// !attacker->IsPolymorphed() && !attacker->IsPolymorphed() &&
// !attacker->isInRoots() && // !attacker->isInRoots() &&
!attacker->IsFriendlyTo(bot) && !attacker->IsFriendlyTo(bot) &&
(attacker->GetThreatMgr().getCurrentVictim() || dynamic_cast<Player*>(attacker)); (attacker->GetThreatMgr().getCurrentVictim() || dynamic_cast<Player*>(attacker));