mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-27 17:57:22 -04:00
Fixed an issue where people who did not get the winning kill... see ext.
Fixed an issue where people who did not get the winning kill of a creature or were not grouped with the killer of a creature could loot the corpse of said creature.
This commit is contained in:
@@ -73,7 +73,9 @@ public class LootService implements INetworkDispatch {
|
||||
|
||||
public void handleLootRequest(CreatureObject requester, TangibleObject lootedObject) {
|
||||
|
||||
if (lootedObject.isLooted() || lootedObject.isLootLock())
|
||||
GroupObject group = (GroupObject) core.objectService.getObject(requester.getGroupId());
|
||||
|
||||
if (lootedObject.isLooted() || lootedObject.isLootLock() || (group == null && !lootedObject.getKiller().equals(requester)) || (group != null && !group.getMemberList().contains(lootedObject.getKiller())))
|
||||
return;
|
||||
|
||||
lootedObject.setLootLock(true);
|
||||
|
||||
Reference in New Issue
Block a user