mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Allow Separate GrayCon Flee rate.
Added following Rules: Combat:FleeGray - If true FleeGrayHPRatio will be used. Combat:FleeGrayHPRatio - HP % when a Gray NPC begins to flee.
This commit is contained in:
+1
-1
@@ -1414,7 +1414,7 @@ void Merc::AI_Process() {
|
||||
if(DivineAura())
|
||||
return;
|
||||
|
||||
int hateCount = entity_list.GetHatedCount(this, nullptr);
|
||||
int hateCount = entity_list.GetHatedCount(this, nullptr, false);
|
||||
if(GetHatedCount() < hateCount) {
|
||||
SetHatedCount(hateCount);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user