Remove curse doesn't work on objects in inventory

Issue #20 closed
Former user created an issue

If a character is holding a cursed item in their inventory, but can't wear or hold the item themselves, the cleric remove curse prayer doesn't see the cursed item.

In disc_aegis.cc, removeCurseBeing function it looks like it only checks the target's worn equipment which would explain why this cursed bracer in my inventory can't be uncursed...

Comments (6)

  1. Ryan Smith-Roberts

    I can only imagine that the reporter was using 'wield' instead of 'hold' when they wanted to brandish their bracer. I don't see any code that checks if an item wants to be held or not. The developers have always required the target to hold the item before removing the curse, probably in pursuit of versimilitude.

  2. drewhershey

    This was me, not sure why I wasn't logged in. I haven't played in awhile but if I remember right the char who had the bracer in his inv couldn't hold it due to eq restrictions. It was a simple metal bracer but was anti-thief or whatever class he was, which stopped him from being able to hold it to allow the curse to be removed. Probably should've mentioned that in my initial report.

  3. Ryan Smith-Roberts

    I looked again and did find where that is happening in TBeing::canUseEquipment. I suppose that in the olden days this'd be fixed by petitioning an immortal to remove the item, but a better solution is required. I can't just let people hold wrong-class weapons, but I could let everyone hold any cursed item. Of course, then it would be stuck in your hand...

    I did have fun looking up the 35 cursed items in the db though. Also it seems that de-cursing doesn't persist across renting.

  4. Log in to comment