mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[6987] Implemented aura dependent creature target prioritization more correctly
This commit is contained in:
parent
2b7004a0ab
commit
9a411858d0
4 changed files with 13 additions and 2 deletions
|
|
@ -278,7 +278,7 @@ HostilReference* ThreatContainer::selectNextVictim(Creature* pAttacker, HostilRe
|
|||
|
||||
// some units are prefered in comparison to others
|
||||
if(iter != lastRef && (target->IsImmunedToDamage(pAttacker->GetMeleeDamageSchoolMask(), false) ||
|
||||
target->hasUnitState(UNIT_STAT_CONFUSED | UNIT_STAT_FLEEING)
|
||||
target->hasNegativeAuraWithInterruptFlag(AURA_INTERRUPT_FLAG_DAMAGE)
|
||||
) )
|
||||
{
|
||||
// current victim is a second choice target, so don't compare threat with it below
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue