diff --git a/zone/hate_list.cpp b/zone/hate_list.cpp index 6e36566ad..d158b258d 100644 --- a/zone/hate_list.cpp +++ b/zone/hate_list.cpp @@ -40,18 +40,6 @@ HateList::~HateList() { } -// neotokyo: added for frenzy support -// checks if target still is in frenzy mode -void HateList::CheckFrenzyHate() -{ - auto iterator = list.begin(); - while(iterator != list.end()) - { - if ((*iterator)->ent->GetHPRatio() >= 20) - (*iterator)->bFrenzy = false; - ++iterator; - } -} void HateList::Wipe() { @@ -169,8 +157,6 @@ Mob* HateList::GetClosest(Mob *hater) { return close; } - -// neotokyo: a few comments added, rearranged code for readability void HateList::Add(Mob *ent, int32 in_hate, int32 in_dam, bool bFrenzy, bool iAddIfNotExist) { if(!ent) diff --git a/zone/hate_list.h b/zone/hate_list.h index a3e6c6a88..4fd00ff73 100644 --- a/zone/hate_list.h +++ b/zone/hate_list.h @@ -54,8 +54,7 @@ public: Mob *GetDamageTop(Mob *hater); // used to check if mob is on hatelist bool IsOnHateList(Mob *); - // used to remove or add frenzy hate - void CheckFrenzyHate(); + //Gets the target with the most hate regardless of things like frenzy etc. Mob* GetMostHate(); // Count 'Summoned' pets on hatelist