mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 19:37:02 +00:00
[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:
parent
2b69a914cf
commit
309c2d8a0e
2 changed files with 4 additions and 4 deletions
|
|
@ -318,9 +318,9 @@ HostilReference* ThreatContainer::selectNextVictim(Creature* pAttacker, HostilRe
|
|||
break;
|
||||
}
|
||||
|
||||
if ((currentRef->getThreat() > 1.3f * pCurrentVictim->getThreat() ||
|
||||
currentRef->getThreat() > 1.1f * pCurrentVictim->getThreat()) &&
|
||||
pAttacker->IsWithinDistInMap(target, ATTACK_DISTANCE))
|
||||
if (currentRef->getThreat() > 1.3f * pCurrentVictim->getThreat() ||
|
||||
(currentRef->getThreat() > 1.1f * pCurrentVictim->getThreat() &&
|
||||
pAttacker->IsWithinDistInMap(target, ATTACK_DISTANCE)) )
|
||||
{ //implement 110% threat rule for targets in melee range
|
||||
found = true; //and 130% rule for targets in ranged distances
|
||||
break; //for selecting alive targets
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8031"
|
||||
#define REVISION_NR "8032"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue