mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-13 22:34:53 +02:00
share party tasks only when shared is active. Also remove pz limit in sources to active share party
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user