From 21d3e5afacf32ebccb647694b5f266238a25ac24 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 13 Apr 2017 16:05:10 -0700 Subject: [PATCH] Adding AutoXTarget for bot owner when hate is added to bot's owner. Bots did not add XTargets, but add hate to client(). This ensures when bots generate hate for client() they also add the mob to the XTarget of the owning Client(). --- zone/attack.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zone/attack.cpp b/zone/attack.cpp index 47e082747..37cdff710 100644 --- a/zone/attack.cpp +++ b/zone/attack.cpp @@ -2541,8 +2541,10 @@ void Mob::AddToHateList(Mob* other, uint32 hate /*= 0*/, int32 damage /*= 0*/, b AddFeignMemory(other->CastToBot()->GetBotOwner()->CastToClient()); } else { - if(!hate_list.IsEntOnHateList(other->CastToBot()->GetBotOwner())) + if (!hate_list.IsEntOnHateList(other->CastToBot()->GetBotOwner())) { hate_list.AddEntToHateList(other->CastToBot()->GetBotOwner(), 0, 0, false, true); + other->CastToBot()->GetBotOwner()->CastToClient()->AddAutoXTarget(this); + } } } #endif //BOTS