*Creatures no longer prioritize attacking unfeared targets over feared targets. By Tassader2.
--HG-- branch : trunk
This commit is contained in:
@@ -280,7 +280,7 @@ HostilReference* ThreatContainer::selectNextVictim(Creature* pAttacker, HostilRe
|
|||||||
|
|
||||||
// some units are preferred in comparison to others
|
// some units are preferred in comparison to others
|
||||||
if(iter != lastRef && (target->IsImmunedToDamage(pAttacker->GetMeleeDamageSchoolMask(), false) ||
|
if(iter != lastRef && (target->IsImmunedToDamage(pAttacker->GetMeleeDamageSchoolMask(), false) ||
|
||||||
target->hasUnitState(UNIT_STAT_CONFUSED | UNIT_STAT_FLEEING)
|
target->hasUnitState(UNIT_STAT_CONFUSED)
|
||||||
) )
|
) )
|
||||||
{
|
{
|
||||||
// current victim is a second choice target, so don't compare threat with it below
|
// current victim is a second choice target, so don't compare threat with it below
|
||||||
|
|||||||
Reference in New Issue
Block a user