cant buy and/or add tokens in deck editor and shop...
also adjust filter menu
This commit is contained in:
Anthony Calosa
2017-02-26 21:21:11 +08:00
parent 0f82b6efba
commit 17b6996ae4
3 changed files with 7 additions and 4 deletions

View File

@@ -271,7 +271,7 @@ void GameStateShop::cancelBooster(int)
void GameStateShop::purchaseCard(int controlId)
{
MTGCard * c = srcCards->getCard(controlId - BOOSTER_SLOTS);
if (!c || !c->data || playerdata->credits - mPrices[controlId] < 0)
if (!c || !c->data || playerdata->credits - mPrices[controlId] < 0 || (c && c->getRarity() != Constants::RARITY_T))//cant buy tokens....
return;
myCollection->Add(c);
int price = mPrices[controlId];