From f5f2cbc674f189905a4c59f56dbba1eb0bd60b9a Mon Sep 17 00:00:00 2001 From: Uleat Date: Wed, 29 Mar 2017 17:45:56 -0400 Subject: [PATCH] Fix for bot loss of aggro to client regardless of hate --- zone/hate_list.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zone/hate_list.cpp b/zone/hate_list.cpp index 225ff39ff..10b46a356 100644 --- a/zone/hate_list.cpp +++ b/zone/hate_list.cpp @@ -364,12 +364,20 @@ Mob *HateList::GetEntWithMostHateOnList(Mob *center, Mob *skip) int64 current_hate = cur->stored_hate_amount; +#ifdef BOTS + if (cur->entity_on_hatelist->IsClient() || cur->entity_on_hatelist->IsBot()){ + + if (cur->entity_on_hatelist->IsClient() && cur->entity_on_hatelist->CastToClient()->IsSitting()){ + aggro_mod += RuleI(Aggro, SittingAggroMod); + } +#else if (cur->entity_on_hatelist->IsClient()){ if (cur->entity_on_hatelist->CastToClient()->IsSitting()){ aggro_mod += RuleI(Aggro, SittingAggroMod); } - +#endif + if (center){ if (center->GetTarget() == cur->entity_on_hatelist) aggro_mod += RuleI(Aggro, CurrentTargetAggroMod);