Sign in to follow this  
thorgot

[Fixed] Wearing rift jewelry uses charges of all identical jewelry in your inventory

Recommended Posts

ItemBonus.checkDepleteAndRename(final Item usedItem, final Creature owner) checks if the owner it has the buff the item gives. If so, it depletes the item by 1.

 

checkDepleteAndRename is called on every item in your inventory in Creature.pollOwned(), not just the items you are wearing. This results in all the jewelry of the type you're wearing losing charge.

 

As a test, when someone put on a new necklace of focus, the other 2 in his inventory became "used" as well.

 

To fix, you'd want to check if the item was worn in pollOwned before calling checkDepleteAndRename().

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this