}
@Override
public StendhalCursor getCursor() {
StendhalCursor cursor = super.getCursor();
Corpse corpse = (Corpse) entity;
// server override?
if ((cursor != StendhalCursor.UNKNOWN) || (corpse == null)) {
return cursor;
}
// empty?
if (corpse.getContent().size() == 0) {
return StendhalCursor.EMPTY_BAG;
}
// owner
if ((corpse.getCorpseOwner() == null) || corpse.getCorpseOwner().equals(User.getCharacterName())) {
return StendhalCursor.BAG;
}
if (User.isGroupSharingLoot() && User.isPlayerInGroup(corpse.getCorpseOwner())) {
return StendhalCursor.BAG;
}
return StendhalCursor.LOCKED_BAG;
}