Use GetSmartMobList in AESpell

This commit is contained in:
Akkadius
2019-12-29 02:42:52 -06:00
parent 6b465c576d
commit ec5faea9b1
4 changed files with 143 additions and 218 deletions
+15
View File
@@ -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;
}