You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can easily be replicated with a healing potion; use its final charge/quantity on a sheet, then immediately try to drag another of the same item onto the sheet. Causes a problem with this function in module/applications/actor/sheet-mixin.mjs:
_onDropStackConsumables(itemData,{ container=null}={}){constdroppedSourceId=itemData._stats?.compendiumSource??itemData.flags.core?.sourceId;if(itemData.type!=="consumable"||!droppedSourceId)returnnull;constsimilarItem=this.actor.sourcedItems.get(droppedSourceId,{legacy: false})// <-- this.actor.sourcedItems still has the now-deleted item?.filter(i=>(i.system.container===container)&&(i.name===itemData.name))?.first();if(!similarItem)returnnull;returnsimilarItem.update({"system.quantity": similarItem.system.quantity+Math.max(itemData.system.quantity,1)});}
I wasn't able to determine whysourcedItems isn't properly updated, though.
The text was updated successfully, but these errors were encountered:
Looks like the system isn't checking whether an item is real or temporary, so when we revive items to roll damage they are being added to sourcedItems even though they don't actually exist on the actor.
Can easily be replicated with a healing potion; use its final charge/quantity on a sheet, then immediately try to drag another of the same item onto the sheet. Causes a problem with this function in
module/applications/actor/sheet-mixin.mjs
:I wasn't able to determine why
sourcedItems
isn't properly updated, though.The text was updated successfully, but these errors were encountered: