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:
Seefo
2014-04-11 09:20:21 -04:00
parent dd78e8d415
commit 3ebf1dbf94
+3 -1
View File
@@ -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);