[6987] Implemented aura dependent creature target prioritization more correctly

This commit is contained in:
arrai 2008-12-30 19:16:08 +01:00
parent 2b7004a0ab
commit 9a411858d0
4 changed files with 13 additions and 2 deletions

View file

@ -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