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

View File

@@ -233,6 +233,7 @@ MTGAlternativeCostRule::MTGAlternativeCostRule(int _id) :
{
aType = MTGAbility::ALTERNATIVE_COST;
}
int MTGAlternativeCostRule::isReactingToClick(MTGCardInstance * card, ManaCost * mana)
{
@@ -257,6 +258,7 @@ int MTGAlternativeCostRule::isReactingToClick(MTGCardInstance * card, ManaCost *
)
{
ManaCost * playerMana = player->getManaPool();
ManaCost * alternative = card->getManaCost()->alternative;
#ifdef WIN32
ManaCost * cost = card->getManaCost();
@@ -434,8 +436,10 @@ int MTGBuyBackRule::isReactingToClick(MTGCardInstance * card, ManaCost * mana)
return 0;
if (card->hasType("land"))
{
if (player == currentPlayer && currentPlayer->canPutLandsIntoPlay && (game->currentGamePhase
== Constants::MTG_PHASE_FIRSTMAIN || game->currentGamePhase == Constants::MTG_PHASE_SECONDMAIN))
if (player == currentPlayer && currentPlayer->canPutLandsIntoPlay
&& (game->currentGamePhase == Constants::MTG_PHASE_FIRSTMAIN
|| game->currentGamePhase == Constants::MTG_PHASE_SECONDMAIN)
)
{
return 1;
}