*Fix a typo that break the whole threat system.
--HG-- branch : trunk
This commit is contained in:
@@ -320,9 +320,9 @@ HostilReference* ThreatContainer::selectNextVictim(Creature* pAttacker, HostilRe
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((currentRef->getThreat() > 1.3f * pCurrentVictim->getThreat() ||
|
if (currentRef->getThreat() > 1.3f * pCurrentVictim->getThreat() ||
|
||||||
currentRef->getThreat() > 1.1f * pCurrentVictim->getThreat()) &&
|
currentRef->getThreat() > 1.1f * pCurrentVictim->getThreat() &&
|
||||||
pAttacker->IsWithinMeleeRange(target))
|
pAttacker->IsWithinMeleeRange(target))
|
||||||
{ //implement 110% threat rule for targets in melee range
|
{ //implement 110% threat rule for targets in melee range
|
||||||
found = true; //and 130% rule for targets in ranged distances
|
found = true; //and 130% rule for targets in ranged distances
|
||||||
break; //for selecting alive targets
|
break; //for selecting alive targets
|
||||||
|
|||||||
Reference in New Issue
Block a user