mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
antidote display and functionality (#10199)
* update antidote display and functionality - fixes #9758 and #10160 update antidote display and functionality - fixes #9758 and #10160 update antidote display and functionality - fixes #9758 and #10160 update antidote display and functionality - fixes #9758 and #10160 * clean up / refactor * prevent unpin of all items which don't have a pinType * remove the double boolean casting / fix lint
This commit is contained in:
@@ -499,7 +499,7 @@ export default {
|
||||
if (!item)
|
||||
return false;
|
||||
|
||||
if (item.purchaseType === 'card')
|
||||
if (['card', 'debuffPotion'].includes(item.purchaseType))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
@@ -520,6 +520,10 @@ export default {
|
||||
|
||||
this.$root.$emit('bv::show::modal', 'select-member-modal');
|
||||
}
|
||||
|
||||
if (item.purchaseType === 'debuffPotion') {
|
||||
this.castStart(item, this.user);
|
||||
}
|
||||
},
|
||||
async memberSelected (member) {
|
||||
await this.castStart(this.selectedSpellToBuy, member);
|
||||
|
||||
Reference in New Issue
Block a user