share party tasks only when shared is active. Also remove pz limit in sources to active share party

This commit is contained in:
ErikasKontenis
2020-05-14 14:19:21 +03:00
parent c4cd152272
commit 8f1e40f0bc
2 changed files with 1 additions and 13 deletions

View File

@@ -428,18 +428,6 @@ bool Party::canUseSharedExperience(const Player* player) const
return false;
}
if (!player->hasFlag(PlayerFlag_NotGainInFight)) {
//check if the player has healed/attacked anything recently
auto it = ticksMap.find(player->getID());
if (it == ticksMap.end()) {
return false;
}
uint64_t timeDiff = OTSYS_TIME() - it->second;
if (timeDiff > static_cast<uint64_t>(g_config.getNumber(ConfigManager::PZ_LOCKED))) {
return false;
}
}
return true;
}