Fix annoying aura crash that has been around for a year and a half, add aura logging, utilize close lists

This commit is contained in:
Akkadius
2020-01-19 21:57:28 -06:00
parent 6c91786cfb
commit 6f73278cf8
7 changed files with 471 additions and 244 deletions
+18
View File
@@ -2624,6 +2624,24 @@ bool EntityList::RemoveMobFromCloseLists(Mob *mob)
return false;
}
/**
* @param mob
* @return
*/
void EntityList::RemoveAuraFromMobs(Mob *aura)
{
LogEntityManagement(
"Attempting to remove aura [{}] from mobs entity_id ({})",
aura->GetCleanName(),
aura->GetID()
);
for (auto &it : mob_list) {
auto mob = it.second;
mob->RemoveAura(aura->GetID());
}
}
/**
* @param close_mobs
* @param scanning_mob