Skip to content

Commit

Permalink
fix: don't remove from gacha if item amount is unlimited
Browse files Browse the repository at this point in the history
  • Loading branch information
AstreaTSS committed Nov 5, 2024
1 parent f012ca6 commit aa95094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exts/gacha/gacha_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ async def gacha_add_item_to(
}
)

if remove_amount_from_gacha:
if remove_amount_from_gacha and item.amount != -1:
batch.prismagachaitem.update(
data={"amount": {"decrement": amount}},
where={"id": item.id},
Expand Down

0 comments on commit aa95094

Please sign in to comment.