From fc79521dd3cfd85ad6be29a865c8105c98f666ac Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Wed, 14 May 2014 08:40:18 -0400 Subject: [PATCH] Rooted NPC's will no longer target players with Divine Aura effect if they are the closest target and other targets exist on the hate list. --- changelog.txt | 3 +++ zone/hate_list.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index fde7ca6b2..8cc495aad 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,8 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50) ------------------------------------------------------- +== 05/14/2014 == +Kayen: Rooted NPC's will no longer target players with Divine Aura effect if they are the closest target and other targets exist on the hate list. + == 05/12/2014 == Uleat: Re-arranged functions in Item.cpp to somewhat match the order they are declared in Item.h. Should make finding their location a little easier when using declarations as a guide. (This will facilitate readability of an upcoming change...) diff --git a/zone/hate_list.cpp b/zone/hate_list.cpp index d83ed4d12..538abac61 100644 --- a/zone/hate_list.cpp +++ b/zone/hate_list.cpp @@ -163,7 +163,7 @@ Mob* HateList::GetClosest(Mob *hater) { ++iterator; } - if (close == 0 && hater->IsNPC()) + if (close == 0 && hater->IsNPC() || close->DivineAura()) close = hater->CastToNPC()->GetHateTop(); return close;