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.
This commit is contained in:
KayenEQ
2014-05-14 08:40:18 -04:00
parent 7d8f1bef87
commit fc79521dd3
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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;