diff --git a/upgrade_system_const.lua b/upgrade_system_const.lua index 29dfa8f..5d72470 100644 --- a/upgrade_system_const.lua +++ b/upgrade_system_const.lua @@ -1,4 +1,4 @@ -local UPGRADE_SYSTEM_VERSION = "2.1.1" +local UPGRADE_SYSTEM_VERSION = "2.1.2" print(">> Loaded Upgrade System v" .. UPGRADE_SYSTEM_VERSION) ITEM_UPGRADE_CRYSTAL = 1 diff --git a/upgrade_system_core.lua b/upgrade_system_core.lua index db59581..ba2d25b 100644 --- a/upgrade_system_core.lua +++ b/upgrade_system_core.lua @@ -148,13 +148,13 @@ function us_onUse(player, item, fromPosition, target, toPosition, isHotkey) end elseif item.itemid == US_CONFIG[1][ITEM_MIND_CRYSTAL] then if not item:hasMemory() then - if not target:isUnique() then + if target:isUnidentified() then player:sendTextMessage(MESSAGE_STATUS_WARNING, "Sorry, this item is unidentified and can't be copied!") player:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE) elseif not target:getBonusAttributes() then player:sendTextMessage(MESSAGE_STATUS_WARNING, "Sorry, this item doesn't have any attributes!") player:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE) - elseif not target:isUnique() then + elseif target:isUnique() then player:sendTextMessage(MESSAGE_STATUS_WARNING, "Sorry, this item is Unique and can't be copied!") player:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE) else