Skip to content

Commit

Permalink
Consume requested amount of ammunition when reducing quantity (#18354)
Browse files Browse the repository at this point in the history
  • Loading branch information
stwlam authored Feb 24, 2025
1 parent 381b4ff commit ca651d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/item/consumable/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class ConsumablePF2e<TParent extends ActorPF2e | null = ActorPF2e | null> extend
} else {
// Deduct one from quantity if this item has one charge or doesn't have charges
await this.update({
"system.quantity": Math.max(quantityRemaining - 1, 0),
"system.quantity": Math.max(quantityRemaining - thisMany, 0),
"system.uses.value": uses.max,
});
}
Expand Down

0 comments on commit ca651d5

Please sign in to comment.