mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Remove polymorphed target from attackers
This commit is contained in:
@@ -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<Player*>(attacker));
|
||||
|
||||
Reference in New Issue
Block a user