Add more rule-driven behavior

This commit is contained in:
Akkadius
2020-01-31 21:51:05 -06:00
parent 158d8a011f
commit c8e6d031cf
4 changed files with 29 additions and 9 deletions
+8 -5
View File
@@ -1239,11 +1239,14 @@ bool Zone::Process() {
LogHotReloadDetail("Hot reload timer check...");
bool perform_reload = true;
for (auto &it : entity_list.GetClientList()) {
auto client = it.second;
if (client->GetAggroCount() > 0) {
perform_reload = false;
break;
if (RuleB(HotReload, QuestsRepopWhenPlayersNotInCombat)) {
for (auto &it : entity_list.GetClientList()) {
auto client = it.second;
if (client->GetAggroCount() > 0) {
perform_reload = false;
break;
}
}
}