mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 19:10:25 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user