mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 10:47:16 +00:00
Use GetSmartMobList in AESpell
This commit is contained in:
1 parent
6b465c576d
commit
ec5faea9b1
4 files changed
+143
-218
No files matched your search
@@ -5030,3 +5030,18 @@ void EntityList::ReloadMerchants() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mob
|
||||
* @param distance
|
||||
* @return
|
||||
*/
|
||||
std::unordered_map<uint16, Mob *> &EntityList::GetCloseMobList(Mob *mob, float distance)
|
||||
{
|
||||
if (distance <= RuleI(Range, MobCloseScanDistance)) {
|
||||
return mob->close_mobs;
|
||||
}
|
||||
|
||||
return mob_list;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user