[8032] partially reverted b4c7e95cbdf72d41fe529b2d6261d3096596c674

The brackets were placed wrong which caused creatures to ignore
threat from players out of melee range. Thanks to KAPATEJIb,
illusion22 and Lynx3d for researching
This commit is contained in:
arrai 2009-06-17 01:09:35 +02:00
parent 2b69a914cf
commit 309c2d8a0e
2 changed files with 4 additions and 4 deletions

View file

@ -318,9 +318,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->IsWithinDistInMap(target, ATTACK_DISTANCE)) pAttacker->IsWithinDistInMap(target, ATTACK_DISTANCE)) )
{ //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

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "8031" #define REVISION_NR "8032"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__