Mobs will now be removed from XTarget when they clear their feign memory aggro

This commit is contained in:
mackal
2013-02-22 22:27:03 -05:00
parent 60172a7801
commit dd913de1a2
2 changed files with 14 additions and 0 deletions
+11
View File
@@ -1422,6 +1422,17 @@ void Mob::RemoveFromFeignMemory(Client* attacker) {
}
void Mob::ClearFeignMemory() {
std::set<uint32>::iterator RememberedCharID;
RememberedCharID = feign_memory_list.begin();
while (RememberedCharID != feign_memory_list.end())
{
Client* remember_client = entity_list.GetClientByCharID(*RememberedCharID);
if(remember_client != NULL) //Still in zone
remember_client->RemoveXTarget(this, false);
RememberedCharID++;
}
feign_memory_list.clear();
minLastFightingDelayMoving = RuleI(NPC, LastFightingDelayMovingMin);
maxLastFightingDelayMoving = RuleI(NPC, LastFightingDelayMovingMax);