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:
negue
2018-03-31 13:39:26 +02:00
committed by Matteo Pagliazzi
parent c21726ec61
commit f3c041a561
7 changed files with 198 additions and 60 deletions

View File

@@ -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);