mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 01:27:20 +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:
1 parent
6c91786cfb
commit
6f73278cf8
7 files changed
+471
-244
No files matched your search
@@ -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