*Fix a typo that break the whole threat system.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-22 03:05:59 -05:00
parent f557b57652
commit 8a44eff53a
+3 -3
View File
@@ -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