removed extra variable that I shouldn't have

This commit is contained in:
techdragon.nguyen@gmail.com
2011-01-16 08:27:32 +00:00
parent 1be97b76f8
commit 44c101bf6b
+6 -2
View File
@@ -233,6 +233,7 @@ MTGAlternativeCostRule::MTGAlternativeCostRule(int _id) :
{ {
aType = MTGAbility::ALTERNATIVE_COST; aType = MTGAbility::ALTERNATIVE_COST;
} }
int MTGAlternativeCostRule::isReactingToClick(MTGCardInstance * card, ManaCost * mana) int MTGAlternativeCostRule::isReactingToClick(MTGCardInstance * card, ManaCost * mana)
{ {
@@ -257,6 +258,7 @@ int MTGAlternativeCostRule::isReactingToClick(MTGCardInstance * card, ManaCost *
) )
{ {
ManaCost * playerMana = player->getManaPool(); ManaCost * playerMana = player->getManaPool();
ManaCost * alternative = card->getManaCost()->alternative;
#ifdef WIN32 #ifdef WIN32
ManaCost * cost = card->getManaCost(); ManaCost * cost = card->getManaCost();
@@ -434,8 +436,10 @@ int MTGBuyBackRule::isReactingToClick(MTGCardInstance * card, ManaCost * mana)
return 0; return 0;
if (card->hasType("land")) if (card->hasType("land"))
{ {
if (player == currentPlayer && currentPlayer->canPutLandsIntoPlay && (game->currentGamePhase if (player == currentPlayer && currentPlayer->canPutLandsIntoPlay
== Constants::MTG_PHASE_FIRSTMAIN || game->currentGamePhase == Constants::MTG_PHASE_SECONDMAIN)) && (game->currentGamePhase == Constants::MTG_PHASE_FIRSTMAIN
|| game->currentGamePhase == Constants::MTG_PHASE_SECONDMAIN)
)
{ {
return 1; return 1;
} }