removed extra variable that I shouldn't have
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user