mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Remove polymorphed target from attackers
This commit is contained in:
parent
5fbd55dc56
commit
2f4579db5f
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user