diff --git a/data-otservbr-global/scripts/actions/other/sweet_heart.lua b/data-otservbr-global/scripts/actions/other/sweet_heart.lua deleted file mode 100644 index 1a2c7caf277..00000000000 --- a/data-otservbr-global/scripts/actions/other/sweet_heart.lua +++ /dev/null @@ -1,20 +0,0 @@ -local sweetHeart = Action() - -function sweetHeart.onUse(cid, item, fromPosition, itemEx, toPosition) - local player = Player(cid) - if not player then - return false - end - - if player:getSlotItem(CONST_SLOT_RING) then - if player:getSlotItem(CONST_SLOT_RING):getId() == item:getId() then - player:getPosition():sendMagicEffect(CONST_ME_HEARTS) - end - else - return false - end - return true -end - -sweetHeart:id(21955) -sweetHeart:register() diff --git a/data-canary/scripts/actions/other/sweetheart_ring.lua b/data/scripts/actions/items/sweetheart_ring.lua similarity index 91% rename from data-canary/scripts/actions/other/sweetheart_ring.lua rename to data/scripts/actions/items/sweetheart_ring.lua index a464ff839ad..5f122069ac1 100644 --- a/data-canary/scripts/actions/other/sweetheart_ring.lua +++ b/data/scripts/actions/items/sweetheart_ring.lua @@ -3,9 +3,9 @@ local sweetheartRing = Action() function sweetheartRing.onUse(player, item, fromPosition, target, toPosition, isHotkey) if item == player:getSlotItem(CONST_SLOT_RING) then player:getPosition():sendMagicEffect(CONST_ME_HEARTS) - return true end - return false + + return true end sweetheartRing:id(21955)