diff --git a/scripts/radial/item/collection/loot_collection.py b/scripts/radial/item/collection/loot_collection.py index c88a04e2..fce4e2c2 100644 --- a/scripts/radial/item/collection/loot_collection.py +++ b/scripts/radial/item/collection/loot_collection.py @@ -8,7 +8,7 @@ def createRadial(core, owner, target, radials): return def handleSelection(core, actor, target, option): - if option == 21 and target: + if option == 21 and target and target.getAttachment('CollectionItemName'): print (target.getAttachment('CollectionItemName')) core.collectionService.addCollection(actor, target.getAttachment('CollectionItemName')) core.objectService.useObject(actor, target)