mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
Make the AI stopping a little less silly on zone shutdown
This commit is contained in:
@@ -4668,3 +4668,10 @@ Mob *EntityList::GetTargetForVirus(Mob *spreader, int range)
|
||||
return TargetsInRange[zone->random.Int(0, TargetsInRange.size() - 1)];
|
||||
}
|
||||
|
||||
void EntityList::StopMobAI()
|
||||
{
|
||||
for (auto &mob : mob_list) {
|
||||
mob.second->AI_Stop();
|
||||
mob.second->AI_ShutDown();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user