mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-08 13:35:10 +00:00
Fix debuff potions
This commit is contained in:
parent
a371ee4410
commit
0f2ebdfc7d
1 changed files with 1 additions and 1 deletions
|
|
@ -300,7 +300,7 @@ class PurchaseDialog(context: Context, component: UserComponent?, val item: Shop
|
|||
} else if (shopItem.purchaseType == "quests" && shopItem.currency == "gold") {
|
||||
observable = inventoryRepository.purchaseQuest(shopItem.key)
|
||||
} else if (shopItem.purchaseType == "debuffPotion") {
|
||||
observable = inventoryRepository.purchaseSpecialSpell(shopItem.key)
|
||||
observable = userRepository.useSkill(user, shopItem.key, null).cast(Any::class.java)
|
||||
} else if (shopItem.purchaseType == "card") {
|
||||
purchaseCardAction?.invoke(shopItem)
|
||||
dismiss()
|
||||
|
|
|
|||
Loading…
Reference in a new issue