From 1380ee6f201e9b5d11198a40834a26481ed6126e Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Sun, 26 Feb 2017 23:21:23 +0800 Subject: [PATCH] equal typo fix --- projects/mtg/src/GameStateShop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/GameStateShop.cpp b/projects/mtg/src/GameStateShop.cpp index 38a180a60..8be4ba36f 100644 --- a/projects/mtg/src/GameStateShop.cpp +++ b/projects/mtg/src/GameStateShop.cpp @@ -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 || (c && c->getRarity() != Constants::RARITY_T))//cant buy tokens.... + 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];