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

@@ -95,7 +95,7 @@ function onKill(player, target)
local players
local party = player:getParty()
if party ~= nil then
if party ~= nil and party:isSharedExperienceEnabled() then
players = party:getMembers() -- all members of the party
players[#players + 1] = party:getLeader() -- don't forget the leader
else