mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-21 21:29:00 +00:00
Fixes #1537
This commit is contained in:
parent
bd6166b580
commit
ecc1abb08e
1 changed files with 4 additions and 0 deletions
|
|
@ -450,6 +450,10 @@ class PurchaseDialog(context: Context, component: UserComponent?, val item: Shop
|
|||
val filteredPets = it.filter {pet ->
|
||||
pet.type == "premium" || pet.type == "wacky"
|
||||
}
|
||||
if (it.firstOrNull()?.type == "wacky") {
|
||||
// Wacky pets can't be raised to mounts, so only need half as many
|
||||
totalCount = 9
|
||||
}
|
||||
shouldWarn = filteredPets.isNotEmpty()
|
||||
return@filter shouldWarn
|
||||
}.flatMap { inventoryRepository.getOwnedItems("hatchingPotions").firstElement() }
|
||||
|
|
|
|||
Loading…
Reference in a new issue